【问题标题】:Google cdn jQuery mobile谷歌 cdn jQuery 移动
【发布时间】:2011-09-19 23:00:59
【问题描述】:

这行得通:

<script src="http://code.jquery.com/jquery-1.5.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js" type="text/javascript"></script>

但我更喜欢语法:

<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1", {uncompressed:true});
</script>

在开发中。

问:我可以使用 google.load 命令加载 jQuery mobile 吗?

【问题讨论】:

  • 旁注 jQm 是 beta 1。至于你的问题,它有效吗?

标签: jquery-mobile google-cdn


【解决方案1】:

据推测,Google Libraries API 将仅支持其documentation 中列出的库,因为Google Loader API 不包含有关包含您自己的库链接的任何信息。

因此得出的结论是,目前无法将 jQuery Mobile 包含在 Google Loader 中。您是否考虑过诸如head.js 之类的替代方案?

【讨论】:

    猜你喜欢
    • 2011-03-01
    • 2012-01-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-10
    • 2011-07-09
    • 1970-01-01
    • 2014-07-01
    相关资源
    最近更新 更多