简体   繁体   English

JavaScript是否适用于手机?

[英]Does javascript work on mobile phones?

JavaScript是否适用于手机?

Which mobile phones? 哪款手机?

There's some pretty good information on this site: 这个网站上有一些非常好的信息:

http://www.quirksmode.org/m/table.html http://www.quirksmode.org/m/table.html

取决于浏览器

Some. 一些。 Do you have a specific model in mind or just in general? 你有一个特定的模型还是一般的?

Depends on what mobile phones and to what extent you need support. 取决于手机以及您需要支持的程度。

Smart phones pretty much all include support for JavaScript. 智能手机几乎都包括对JavaScript的支持。 How well they support them is another story. 以及他们如何支持他们则是另一回事。

You can see a lot of what mobile devices support here: http://www.quirksmode.org/m/table.html 您可以在此处看到许多移动设备支持的内容: http//www.quirksmode.org/m/table.html

In general I would assume that javascript isn't there, as older cellphone models may not support javascript, but, if you use unobtrusive javascript and graceful degradation, then it won't really matter, as your page will function in some known way on any device, as long as it is formatting itself properly. 一般情况下我会假设javascript不存在,因为较旧的手机型号可能不支持javascript,但是,如果你使用不引人注目的javascript和优雅降级,那么它并不重要,因为你的页面将以某种已知的方式运行任何设备,只要它正确格式化。

So, if you want to have it work on all mobile phones, then start with not needing javascript, then add in the javascript as an enhancement. 所以,如果你想让它适用于所有手机,那么从不需要javascript开始,然后添加javascript作为增强功能。

还要记住,即使JavaScript可用,它们也是不同手机和不同浏览器支持的不同版本的JavaScript。

http://www.skyfire.com/ if you can get that browser on it then you can get javascript! http://www.skyfire.com/如果您可以在其上获得该浏览器,那么您可以获得javascript! Awesome browser and quite portable... 很棒的浏览器,非常便携......

Works on Symbian (Nokia Phones use it) and Windows Mobile. 适用于Symbian(诺基亚手机使用它)和Windows Mobile。

I think javascript is totally browser dependent. 我认为javascript完全取决于浏览器。 Symbian mobile surely can run javascript. Symbian手机肯定可以运行javascript。 Smart phones are much smarter to handle javascript. 智能手机处理javascript 更加智能

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

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