javascript navigator.javaEnabled函数的意义是什么? [英] What's the point of the javascript navigator.javaEnabled function?

查看:115
本文介绍了javascript navigator.javaEnabled函数的意义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

navigator对象具有javaEnabled函数,该函数指示浏览器是否具有javascript支持. 这似乎有点奇怪:

The navigator object has a javaEnabled function that indicates if the browser has javascript support. This seems to be a little odd:

  • 如果确实启用了JS功能, 显然会返回true.
  • 如果禁用了JS,它将返回 < nothing >,因为它永远不会运行, javaScript被禁用.
  • If JS is indeed enabled the function will return true, well obviously.
  • If JS is disabled it will return <nothing> since it is never run, javaScript is disabled.

我必须在这里丢失一些东西,或者说这个功能真的没用吗?

I must be missing something here, or is it really that useless this function?

推荐答案

java!= javaScript

navigator.javaEnabled检查是否存在 Java ,而不是JavaScript.

navigator.javaEnabled checks for the presence of Java, not JavaScript.

参考

这一定是Java小应用程序将成为Web未来的过去的遗物...

This must be a relic from the olden days when Java applets were going to be the future of the web...

这篇关于javascript navigator.javaEnabled函数的意义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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