简体   繁体   English

移动浏览器和JavaScript

[英]Mobile browsers and JavaScript

Can't every mobile browsers support JavaScript? 并非每个移动浏览器都支持JavaScript吗? Which language/technology are used in mobile browsers pages? 移动浏览器页面使用哪种语言/技术? I mean the mobile websites... 我的意思是手机网站...

I know XHTML is used much, What are the rest? 我知道XHTML经常使用,剩下的是什么?

iPhone and default Android and BlackBerry all use WebKit. iPhone和默认的Android和BlackBerry均使用WebKit。 Opera and FireFox offer mobile browsers as options. Opera和FireFox提供了移动浏览器作为选项。

Windows Phone uses a version of IE9. Windows Phone使用IE9版本。

All of above support JavaScript. 以上所有都支持JavaScript。 You can see phones from 2+ years ago that have browsers w/o JS, but they're not common anymore. 您可以看到2年前的手机都装有不带JS的浏览器,但现在已经不常见了。

Most modern smartphones' browsers are based on Webkit - the same engine that powers Chrome and Safari. 大多数现代智能手机的浏览器都是基于Webkit的,Webkit是支持Chrome和Safari的引擎。 IE on Windows Phone 7 and Firefox are supposed to be standards-compliant too. Windows Phone 7和Firefox上的IE也应该符合标准。 Opera does have some support but don't count on it too much. Opera确实有一些支持,但不要过多依赖它。

So, yes, they do support Javascript, and the technology stack is the same as for desktop ones (HTML, CSS, javascript). 因此,是的,它们确实支持Javascript,并且技术堆栈与台式机相同(HTML,CSS,javascript)。 You even get broader support for HTML5/CSS3 in them. 您甚至可以在其中获得对HTML5 / CSS3的广泛支持。

Older phones, however, are a completely different story, and believe me, you don't want to go there :) 但是,旧手机则完全不同,相信我,您不想去那里:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM