【问题标题】:Jquery Mobile Scrollview & google maps routeJquery Mobile Scrollview 和谷歌地图路线
【发布时间】:2011-06-09 04:08:34
【问题描述】:

我不确定我是否错误地实现了滚动视图,或者插件是否不喜欢谷歌地图创建的内容。但是在我的路线页面上,我没有看到任何插件工作的迹象。我尽力按照 github 上的示例进行操作,我认为我没有遗漏任何 javascript 文件。一个附带问题,只是为了澄清你需要data-scroll="true"data-scroll="y"进行垂直滚动,还是data-scroll="y"自己打开滚动?

感谢您的帮助!

【问题讨论】:

    标签: javascript google-maps-api-3 jquery-mobile scrollview


    【解决方案1】:

    我知道这不是答案,但它就像评论一样长

    好吧,只是在 Chrome 中运行该网站,我得到了这些错误:

    • jquery.easing.1.3.js:6 Uncaught SyntaxError: Unexpected token
    • jquery.mobile.scrollview.js:6 Uncaught SyntaxError: Unexpected token
    • scrollview.js:6 Uncaught SyntaxError: Unexpected token
    • directionstest.cfm:38 Uncaught ReferenceError: settimeout is not defined
    • directionstest.cfm:88 Uncaught ReferenceError: getElementById is not defined

    只是在 iPhone 上运行该网站我得到了这些错误:

    • jquery.easing.1.3.js:6 Uncaught SyntaxError: Unexpected token
    • jquery.mobile.scrollview.js:6 Uncaught SyntaxError: Unexpected token
    • scrollview.js:6 Uncaught SyntaxError: Unexpected token
    • directionstest.cfm:38 Uncaught ReferenceError: settimeout is not defined

    How to turn on the debug console in Mobile Safari (iOS)

    【讨论】:

    • 恭喜。这是您在 jquery-mobile 标签中的第 100 个答案!
    【解决方案2】:

    如果您设置data-scroll="y",它应该可以工作(我还没有让data-scroll='true' 做任何事情)。

    我也会在内容上设置它,而不是在 "#body" div 上。如果你把它放在body div上,滚动条就会在里面。 (也许只是个人喜好,但里面有滚动条感觉很奇怪。)

    编辑:Chromium 调试器说 Uncaught ReferenceError: getElementById is not defined

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-03-15
      • 1970-01-01
      • 2011-06-02
      • 1970-01-01
      • 2016-06-10
      • 2016-08-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多