diff options
Diffstat (limited to 'files/zh-cn/orphaned/web/api/navigatorplugins/javaenabled')
-rw-r--r-- | files/zh-cn/orphaned/web/api/navigatorplugins/javaenabled/index.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/files/zh-cn/orphaned/web/api/navigatorplugins/javaenabled/index.html b/files/zh-cn/orphaned/web/api/navigatorplugins/javaenabled/index.html new file mode 100644 index 0000000000..746b108c8e --- /dev/null +++ b/files/zh-cn/orphaned/web/api/navigatorplugins/javaenabled/index.html @@ -0,0 +1,31 @@ +--- +title: NavigatorPlugins.javaEnabled +slug: orphaned/Web/API/NavigatorPlugins/javaEnabled +translation_of: Web/API/NavigatorPlugins/javaEnabled +original_slug: Web/API/NavigatorPlugins/javaEnabled +--- +<p>{{ APIRef("HTML DOM") }}</p> + +<h3 id="Summary" name="Summary">概述</h3> + +<p>该方法用来表明当前浏览器是否激活了Java.</p> + +<h3 id="Syntax" name="Syntax">语法</h3> + +<pre class="eval"><em>result</em> = window.navigator.javaEnabled() +</pre> + +<h3 id="Example" name="Example">例子</h3> + +<pre class="eval">if (window.navigator.javaEnabled()) { + // 浏览器中Java可用 +} +</pre> + +<h3 id="Notes" name="Notes">备注</h3> + +<p>该方法的返回值是用来表明浏览器的当前配置文件是否允许使用Java的, 而不是表明浏览器是否支持Java(安装有Java插件).</p> + +<h3 id="Specification" name="Specification">规范</h3> + +<p>{{ DOM0() }}</p> |