移动设备上的 Javascript 支持

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10500228/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 10:05:54  来源:igfitidea点击:

Javascript Support on Mobile Devices

javascriptmobilecross-browser

提问by Anna

There is a similar question asked in this post: Does javascript work on mobile phones?

这篇帖子里有一个类似的问题: Does javascript work on mobile phone?

The problem is this question was asked in 2009, what are the javascript support for mobile devices nowadays?

问题是这个问题是在 2009 年提出的,现在移动设备的 javascript 支持是什么?

回答by Elliot Bonneville

Basically as much as you could want. Most mobile phones are running some version of WebKit (what Chrome runs on), so you're pretty much guaranteed better support than IE8 provides if you're developing for mobile.

基本上是你想要的。大多数手机都运行某些版本的 WebKit(Chrome 运行的版本),因此如果您为移动设备进行开发,则几乎可以保证比 IE8 提供更好的支持。

Edit: What Joe Tuskansaid. :)

编辑:Joe Tuskan所说的。:)

回答by Hyman

JavaScript support is very good on modern mobile browsers. The mobile version of Firefox and Chrome provide pretty much desktop-level support for HTML5(CSS3+JavaScript+HTML) features.

JavaScript 对现代移动浏览器的支持非常好。Firefox 和 Chrome 的移动版本为 HTML5(CSS3+JavaScript+HTML)特性提供了几乎桌面级别的支持。

HTML5 Mobile Supporthttp://mobilehtml5.org/

HTML5 移动支持http://mobilehtml5.org/

JavaScript Functionality Accross Desktop / Mobilehttp://caniuse.com/#cats=JS_API

跨桌面/移动设备的 JavaScript 功能http://caniuse.com/#cats=JS_API

It might be also worthwhile stating the impressive JavaScript performance of modern mobile browsers, I recently compared Desktop vs Mobile browser performance see here: How powerful are mobile browsers compared to desktops?

值得一提的是,现代移动浏览器令人印象深刻的 JavaScript 性能,我最近比较了桌面浏览器与移动浏览器的性能,请参见此处: 与桌面相比,移动浏览器的功能有多强大?