初始化iscroll带的PhoneGap和jQuery移动 [英] initializing iscroll with phonegap and jQuery mobile

查看:118
本文介绍了初始化iscroll带的PhoneGap和jQuery移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了使用的PhoneGap和jQuery Mobile的项目,并已iscroll在第一页上完美的工作。但是在我的第二页iscroll没有运行。谁能告诉我你是怎么在JQM页面上初始化一个jQuery脚本?我是新来的两个平台,并认为这可能是一个简单的错误!谢谢

I have built a project using phonegap and jquery mobile, and have iscroll working perfectly on the first page. However on my second page iscroll isn't running. Can someone tell me how you initialize a jquery script on the page in JQM? I am new to both platforms and think it may be a simple mistake! Thanks

推荐答案

我从来没有使用过的PhoneGap,但即时通讯建设JQM-web应用程序一样,所以我希望这对你的作品。

I never used phonegap, but im building a JQM-webapp as well, so i hope this works for you.

iScroll似乎会导致几个问题想实现它在JQM。这就是为什么他们想出了 jquery.mobile.iscrollview 这bascically适应iScroll JavaScript来jQuery的移动环境。

iScroll seems to cause several problems trying to implement it in JQM. This is why they came up with jquery.mobile.iscrollview which bascically adapts the iScroll javascript to the jQuery Mobile environment.

就包括脚本,并添加数据iscroll =你的分区。并包括所有的脚本,在给定的顺序。

Just include the script and add data-iscroll="" to your div. And include all of your scripts in the given order.

这篇关于初始化iscroll带的PhoneGap和jQuery移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆