Android jQuery 和移动浏览器的兼容性?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2233292/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
jQuery and mobile browser compatibility?
提问by fractalbit
I want to build a relatively simple version of my site for mobile phones, but I will definitely need JavaScript and jQuery for many functions.
我想为手机构建一个相对简单的网站版本,但我肯定需要 JavaScript 和 jQuery 来实现许多功能。
Googling didn't help to find an answer. How is compatibility of jQuery with popular browsers in mobile phones?
谷歌搜索没有帮助找到答案。jQuery与手机流行浏览器的兼容性如何?
I am talking for smartphones. For example, the default browsers for these platforms
我说的是智能手机。例如,这些平台的默认浏览器
- Windows Mobile6+
- Android 1.5+
- iPhone 3G
and let's add Opera Mobile.
让我们添加Opera Mobile。
采纳答案by Roman Nurik
jQuery should work fine on at least the Android and iPhone web browsers (don't know about WinMo), as they fully support JavaScript and are for the most part standards compliant.
jQuery 至少在 Android 和 iPhone Web 浏览器上应该可以正常工作(不了解 WinMo),因为它们完全支持 JavaScript,并且大部分都符合标准。
If you expand a little bit on which specific features of jQuery you're using, I or others can give a better answer here.
如果您稍微扩展一下您使用的 jQuery 的哪些特定功能,我或其他人可以在这里给出更好的答案。
回答by dave1010
The jQuery Mobileframework uses jQuery and has support for many mobile platforms. All browsers that jQuery Mobile works on should be passing the jQuery test suite.
在jQuery Mobile的框架使用jQuery和具有支持多种移动平台。jQuery Mobile 工作的所有浏览器都应该通过 jQuery 测试套件。
回答by jQuery Lover
回答by fravelgue
See What's jQuery's mobile support & strategy?. iPhone, Android, and similar WebKitbrowsers should be compatible. I think you will have many problems with Windows Mobile.
请参阅什么是 jQuery 的移动支持和策略?. iPhone、Android 和类似的WebKit浏览器应该是兼容的。我认为您在使用 Windows Mobile 时会遇到很多问题。
回答by Igor Zevaka
Both Android and iPhone are full featured WebKit browsers (bar plugins). I would be highly surprised if it doesn't work on those.
Android 和 iPhone 都是功能齐全的 WebKit 浏览器(栏插件)。如果它对那些不起作用,我会非常惊讶。
回答by gcb
They now have a browser compatibility matrixlike YUI.
回答by hallvors - restore Monica
Should work just fine in current Opera Mobile - if you target older versions (<9.5 AFAIK) you'd need to watch out for this: http://my.opera.com/hallvors/blog/show.dml/1665828
在当前的 Opera Mobile 中应该可以正常工作 - 如果您针对旧版本(<9.5 AFAIK),您需要注意这一点:http: //my.opera.com/hallvors/blog/show.dml/1665828