Navigator taintEnabled() 方法

2018-12-19 16:41 更新
Navigator 對(duì)象參考手冊(cè)Navigator 對(duì)象

定義和用法


taintEnabled() 方法可返回一個(gè)布爾值,該值聲明了當(dāng)前瀏覽器是否啟用了數(shù)據(jù)污點(diǎn) (data tainting)。

語法

navigator.taintEnabled()

瀏覽器支持


Internet ExplorerFirefoxOperaGoogle ChromeSafari

目前只有 Internet Explorer 和 Opera 瀏覽器支持 taintEnabled() 方法。


實(shí)例


實(shí)例


確定瀏覽器是否已啟用數(shù)據(jù)污點(diǎn):

<html>
<body>

<script>
document.write("啟用數(shù)據(jù)污點(diǎn): " + navigator.taintEnabled());
</script>

</body>
</html>

輸出:


嘗試一下 ?


Navigator 對(duì)象參考手冊(cè)Navigator 對(duì)象
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)