问题描述
我没有任何设备来测试的时刻。我想我会开始使用模拟器以后。
I don't have any of the devices to test at the moment. I guess I'll start using the emulators later on.
我们正在寻找能够提供移动支持。我想知道的jQuery或甚至javascript的如何呈现在各自的浏览器。
We're looking to offer mobile support. I was wondering how jQuery or even javascript renders in their respective browsers.
什么工作?是什么呢?任何提示吗?建议?
What works? What doesn't? Any tips? Advice?
推荐答案
我用jQuery的iPhone上。请记住,移动Safari浏览器是不是一个正式支持的浏览器的jQuery。但它足够接近Safari浏览器,大多数事情的工作。
I've used jQuery on iPhone. Remember that Mobile Safari is not an officially supported browser for jQuery. But it's close enough to Safari that most things work.
如果我没有记错,mousedown事件不会发生,直到鼠标松开发生,此时两个火。我的猜测是,大多数事情会工作,但你需要仔细检验一切。
If I recall correctly, mousedown event doesn't happen until the mouseup happens, at which point both fire. My guess is that most things will work, but you need to test everything carefully.
我的经验是改变DOM异常缓慢。事情在模拟器上飞行可以拖动设备上。 (你提到你会使用仿真器 - 不信任你对他们的表现)
My experience is that changing the DOM is unexpectedly slow. Things that fly on the emulator can drag on the device. (You mentioned you'd be using emulators--do NOT trust performance you get on them.)
jQuery的可能矫枉过正。我最终依靠XUI,它给你很多的jQuery的东西,但更轻巧,同时还为您提供了触摸事件。 http://github.com/brianleroux/xui/tree/master
jQuery might be overkill. I ended up relying on XUI, which gives you a lot of the jQuery stuff, but is much more lightweight, and also gives you touch events. http://github.com/brianleroux/xui/tree/master
PPK已开始测试移动浏览器。 http://www.quirksmode.org/m/w3c_core.html
ppk has begun testing mobile browsers. http://www.quirksmode.org/m/w3c_core.html
这篇关于jQuery的在iPhone /安卓/黑莓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!