如何在JQuery Mobile上找到要设置的默认属性?

时间:2017-06-01 03:35:53

标签: jquery-mobile

查看jqm存储库,他们有一个名为https://github.com/jquery/jquery-mobile/blob/master/tools/config-props.html config-props。

的工具

但是,下载repo并在本地计算机上运行它最终会出现以下错误:

未捕获的SyntaxError:意外的令牌<文件:/// C:/Users/Ryan/Downloads/jquery-mobile-1.3-stable/jquery-mobile-1.3-stable/js/:1

来自config-props.html

<script src="../external/jquery/jquery.js"></script>
<script src="../js/"></script>

问题是chrome将/ js /目录视为列出文件夹内容的html索引页面,而不是将所有javascript文件都包含在页面中。

这是铬的问题吗?该工具是否有错误?或者是否需要先进行某种预处理?

1 个答案:

答案 0 :(得分:0)

您可以在线查看此页面的文档。

它发表的不是很好,但是在链接断开之后,一些网址调整/探索导致了这个

http://jquerymobile.com/resources/#Tools

页面上的链接断开:http://jquerymobile.com/test/tools/log-page-events.html

看起来类似于https://github.com/jquery/jquery-mobile/blob/e377564aa121d0439a21bc97f7854ee618c3f72d/tools/log-page-events.html

重定向到

http://view.jquerymobile.com/master/demos/

这看起来像是github repo的托管版本。

更改为

http://view.jquerymobile.com/1.3-stable/tools/导致了一个导致

的索引页面

http://view.jquerymobile.com/1.3-stable/tools/config-props.html