现在大多数智能手机都支持 JavaScript 吗?
我一直以为不支持,直到昨天我用手机登录gmail。
如果忘记输入密码,我可以看到红色提示。
如果不支持javascript,那是如何实现的呢?
I've always been thinking it's not supported until yesterday I login to gmail in my phone.
I can see hints in red if I forget to input password.
If javascript is not supported,how's that implemented?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,是大多数智能手机至少在某种程度上支持它,主要手机都很好地支持它(iPhone、Droid 等有很好的支持,例如,一些带有基于 WebKit 的浏览器的新黑莓手机)以及......我确信还有其他我不知道的)。
如果手机不支持 JavaScript,则会发生正常的非 AJAXy 行为,并且当您发布到服务器时,返回的页面具有带有红色/错误样式的元素。
无论是否使用 JavaScript,此行为均有效。
First, yes most smart phones support it at least somewhat, the major phone support it very well (iPhone, Droid, etc have very good support for example, some of the new BlackBerry phones with WebKit based browsers do as well...and I'm sure there are others I'm unaware of).
If the phone doesn't support JavaScript, normal non-AJAXy behavior happens, and when you post to the server, the page that comes back has the element styled with red/error styling.
This behavior works with or without JavaScript.