[英]Chrome and local JavaScript files
我有这样的代码: http : //codepad.org/0j9m2Xdw
这些文件:
<link href="js/jtable/themes/metro/blue/jtable.min.css" rel="stylesheet" type="text/css" />
<script src="js/jtable/jquery.jtable.min.js" type="text/javascript"></script>
在100%正确的位置。 我使用--allow-file-access
和--allow-file-access-from-files
参数运行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" />
看到这个jsfiddle演示
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.