如果JavaScript被禁用,会对我的web应用程序是什么? [英] What happens to my web application if JavaScript is disabled?

查看:111
本文介绍了如果JavaScript被禁用,会对我的web应用程序是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习jQuery和我要写集中使用该库的某些页面。我刚刚了解到,一些用户在他们的浏览器中禁用JavaScript的(我甚至不知道这是可能的和/或必要的)。

I'm learning jQuery and am about to write some pages using intensively that library. I just learned that some user disable JavaScript on their browser (I didn't even know that was possible and/or necessary).

现在,这里是我的问题:如果一个用户禁用JavaScript的发生到我的web应用程序是什么?举例来说,我想使用AJAX和诸如'的insertBefore命令来带来过一个DIV,将显示结果显示一些画面。

Now, here's my question: What happens to my web application if a user disable JavaScript? For instance, I'd like to display some screens using AJAX and commands such as 'InsertBefore' to bring in live a DIV that will display the result.

所以,如果禁用JavaScript,我不知道会发生这一切工作依赖于JavaScript?

So, if JavaScript is disabled, I wonder what going to happen to all this work that relies on JavaScript?

我有点失去了。

感谢您的帮助。

推荐答案

所有的东西在JavaScript中做是行不通的。一些用户禁用出于安全考虑,NoScript的是一个很好的例子。您可以通过从页面移除脚本或安装NoScript的 - 插件的Firefox自己尝试一下。

All what's done in JavaScript won't work. Some users disable it for security reasons, NoScript is an excellent example. You can try it yourself by removing the scripts from your page or installing the NoScript-plugin for Firefox.

作为一个经验法则:


  1. 请在网站只有语义的HTML工作

  2. 添加CSS

  3. 添加JS

但该网站应该是(几乎)全功能的第一阶段。

But the website should be (almost) fully functional in stage 1.

这篇关于如果JavaScript被禁用,会对我的web应用程序是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆