On desktop websites we always think "what if the user has JavaScript disabled" and we try to make our code gracefully degradable so we can at least display the important info.
But in Mobile browsers should we think the same way? Is there any reason to disable javascript in mobile browsers? Are they any securtiy threats via JavaScript for mobile websites?
http://hubpages.com/hub开发者_如何学运维/How-to-enable-disable-JavaScript-on-the-Droid-Android-phone
There is of course some security risk with JavaScript on mobile phones - if there wasn't, you could be sure that desktop browsers would have the same security! But mobile users are perhaps more likely to have JavaScript on because - especially on the iPhone - it has to stand in for Flash or Silverlight functionality. JS is also used to provide faux-native interfac controls to Web apps, and thus has even more added value.
Of course, it is ideal to support users without JavaScript. If it is feasible you should absolutely strive to do so unless dynamic interactions are so integral to your service that you cannot so without.
精彩评论