Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/78.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
Chrome和本地JavaScript文件_Javascript_Jquery_Google Chrome_Jquery Jtable - Fatal编程技术网

Chrome和本地JavaScript文件

Chrome和本地JavaScript文件,javascript,jquery,google-chrome,jquery-jtable,Javascript,Jquery,Google Chrome,Jquery Jtable,我有这样一个代码: 这些文件: 100%处于正确位置。我使用--允许文件访问和--允许文件访问参数运行google chrome。即使这样,当我尝试访问我的index.html位置时,仍然会得到一个空白页面,即:file:///home/myusername/code/web/index.html 怎么了?JTable还需要jQueryUI,试试这个: <script src="js/jquery/jquery-2.0.2.min.js" type="text/javascript"&

我有这样一个代码:

这些文件:

100%处于正确位置。我使用
--允许文件访问
--允许文件访问
参数运行
google chrome
。即使这样,当我尝试访问我的
index.html
位置时,仍然会得到一个空白页面,即:
file:///home/myusername/code/web/index.html


怎么了?

JTable还需要jQueryUI,试试这个:

<script src="js/jquery/jquery-2.0.2.min.js" type="text/javascript"></script>
<!-- JqueryUI -->
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js  " type="text/javascript"></script>
<!-- Include one of jTable styles. -->
<link href="js/jtable/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css" />


查看此演示

您是否查看了developer tools中的控制台以查看是否出现任何错误?以前,我曾多次清除chrome缓存。而我没有充分调查,;当时它看起来像个bug。哎呀,开发者工具的控制台给了我这些错误:
uncaughtreferenceerror:jQuery未定义jQuery.jtable.min.js:53
uncaughtreferenceerror:$未定义index.html:15
。这是jTable 2.3.0。@Teddy jTable是jquery插件,所以,首先你需要包括jqueryOkay,我已经在我的index.html中包括了jquery-2.0.2.min.js,现在我得到了
Uncaught-TypeError:Object函数(e,n){return new x.fn.init(e,n,t)}在jquery.jTable.min.js:25
Uncaught-TypeError:Object[对象对象对象]在index.html:17中没有方法“jtable”
。。。对不起,我是JS的新手。链接到包含jquery的
index.html