Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 韩元';无法正确打开Phonegap应用程序的文件浏览器-但HTML可以_Javascript_Html_Cordova - Fatal编程技术网

Javascript 韩元';无法正确打开Phonegap应用程序的文件浏览器-但HTML可以

Javascript 韩元';无法正确打开Phonegap应用程序的文件浏览器-但HTML可以,javascript,html,cordova,Javascript,Html,Cordova,我不熟悉HTML/Javascript/Jquery,所以这个问题看起来很基本。 但我在Phonegap中找到了一个我想在我的应用程序中使用的。 问题是,我下载的示例使用此方法打开filebrowser <a href="fileBrowser.html" data-role="button" data-inline="true" id="browseBtn">Browse</a> 我这样称呼它(只是为了测试它是否有效): 浏览 应该是这样的: 但不幸的是,当我使

我不熟悉HTML/Javascript/Jquery,所以这个问题看起来很基本。 但我在Phonegap中找到了一个我想在我的应用程序中使用的。 问题是,我下载的示例使用此方法打开filebrowser

<a href="fileBrowser.html"  data-role="button" data-inline="true" id="browseBtn">Browse</a>
我这样称呼它(只是为了测试它是否有效):

浏览
应该是这样的:

但不幸的是,当我使用Javascript时,结果是这样的:

看起来您在使用jQuery Mobile

使用以下命令:

$.mobile.changePage("fileBrowser.html");
<a onclick="test()"  data-role="button" data-inline="true" id="browseBtn">Browse</a>
$.mobile.changePage("fileBrowser.html");