如何找到要在 JQuery 移动设备上设置的默认属性?
How do I find the default properties to set on JQuery Mobile?
查看 jqm 存储库,他们有一个名为 https://github.com/jquery/jquery-mobile/blob/master/tools/config-props.html config-props 的工具。
但是,在我的本地计算机上下载存储库并运行它最终出现以下错误:
未捕获的语法错误:意外的标记 < file:///C:/Users/Ryan/Downloads/jquery-mobile-1.3-stable/jquery-mobile-1.3-stable/js/:1
来自配置-props.html
<script src="../external/jquery/jquery.js"></script>
<script src="../js/"></script>
问题是 chrome 将 /js/ 目录视为列出文件夹内容的 html 索引页,而不是将所有 javascript 文件包含在其中页面。
这是 chrome 的问题吗?该工具是否有错误?还是需要先进行某种预处理?
您可以在他们的文档中在线查看此页面。
它发布的不是很好,但是一些 url 在跟随一个损坏的 link 之后进行调整/探索导致了这个
http://jquerymobile.com/resources/#Tools
页面 link 已损坏:http://jquerymobile.com/test/tools/log-page-events.html
重定向到
http://view.jquerymobile.com/master/demos/
这看起来很像 github 存储库的托管版本。
改为
http://view.jquerymobile.com/1.3-stable/tools/ 产生了一个索引页,该页导致
http://view.jquerymobile.com/1.3-stable/tools/config-props.html
查看 jqm 存储库,他们有一个名为 https://github.com/jquery/jquery-mobile/blob/master/tools/config-props.html config-props 的工具。
但是,在我的本地计算机上下载存储库并运行它最终出现以下错误:
未捕获的语法错误:意外的标记 < file:///C:/Users/Ryan/Downloads/jquery-mobile-1.3-stable/jquery-mobile-1.3-stable/js/:1
来自配置-props.html
<script src="../external/jquery/jquery.js"></script>
<script src="../js/"></script>
问题是 chrome 将 /js/ 目录视为列出文件夹内容的 html 索引页,而不是将所有 javascript 文件包含在其中页面。
这是 chrome 的问题吗?该工具是否有错误?还是需要先进行某种预处理?
您可以在他们的文档中在线查看此页面。
它发布的不是很好,但是一些 url 在跟随一个损坏的 link 之后进行调整/探索导致了这个
http://jquerymobile.com/resources/#Tools
页面 link 已损坏:http://jquerymobile.com/test/tools/log-page-events.html
重定向到
http://view.jquerymobile.com/master/demos/
这看起来很像 github 存储库的托管版本。
改为
http://view.jquerymobile.com/1.3-stable/tools/ 产生了一个索引页,该页导致
http://view.jquerymobile.com/1.3-stable/tools/config-props.html