哪些移动浏览器支持 javascript(和 Ajax)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3255048/
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
Which mobile browsers support javascript (and Ajax)?
提问by Shaul Behr
For the web site I'm building (targeted at mobile users) I'm thinking of using some Ajax controls. I'd like to know which mobile browsers do and don't support Javascript and Ajax, so I can know whether I've at least covered the majority of my target market (i.e. iPhone, Droid, Nokia, Opera). If not, I'll have to find an alternative way of presenting my forms...
对于我正在构建的网站(针对移动用户),我正在考虑使用一些 Ajax 控件。我想知道哪些移动浏览器支持和不支持 Javascript 和 Ajax,所以我可以知道我是否至少覆盖了我的大部分目标市场(即 iPhone、Droid、诺基亚、Opera)。如果没有,我将不得不找到一种替代方式来呈现我的表格......
Thanks!
谢谢!
回答by jevakallio
I've found ppk's list on quirksmodevery helpful. It's not a 100% complete resource, but should cover most major browsers.
我发现quirksmode 上的 ppk 列表非常有帮助。它不是 100% 完整的资源,但应该涵盖大多数主要浏览器。
回答by Noon Silk
Given "recent" phones, you'l find the answer is "most of them".
鉴于“最近”的手机,您会发现答案是“大多数”。
Along with the sites already listed, consider Device Atlas.
除了已经列出的站点,请考虑Device Atlas。
回答by lucideer
This may be slightly OT, but it's worth noting here, w.r.t. direct javascript support, that there's two types of mobile "browsers" - there are browsers with JS interpreters in them (like Opera Mobile, iPhone Safari, Droid) and then there are "thin clients" (like Opera Mini, Bolt, Skyfire etc.).
这可能有点过时,但这里值得注意的是,直接支持 javascript,有两种类型的移动“浏览器”——其中有带有 JS 解释器的浏览器(如 Opera Mobile、iPhone Safari、Droid),然后是“瘦客户端”(如 Opera Mini、Bolt、Skyfire 等)。
Thin clients support scripting, but do so in a different way. They have no JS engine on the phone - the JS is executed on the server and the result of that is then sent to the browser.
瘦客户端支持脚本,但以不同的方式实现。他们在手机上没有 JS 引擎——JS 在服务器上执行,然后将结果发送到浏览器。
回答by Andy E
The default browsers included in Android, iOS Safari (iPhone) and Nokia all support JavaScript and Ajax. As does Opera Mini. Be aware, though, that it can be disabled (at least, in Opera Mini and Safari).
Android、iOS Safari (iPhone) 和诺基亚中包含的默认浏览器都支持 JavaScript 和 Ajax。Opera Mini 也是如此。但是请注意,它可以被禁用(至少在 Opera Mini 和 Safari 中)。
Quirksmode has compatibility tablesfor mobile browsers. When in doubt, use feature detection and try and leave a fallback for when JavaScript is disabled.
Quirksmode 有移动浏览器的兼容性表。如有疑问,请使用功能检测并尝试在 JavaScript 被禁用时留下后备。
回答by Neothor
You could use something like WURFLto find the capabilities of the mobile devices serverside and present a page accordingly.
您可以使用WURFL 之类的工具来查找移动设备服务器端的功能并相应地呈现页面。

