We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
第286天 用户在浏览器中禁用了js脚本时该怎么办?
我也要出题
可以使用 noscript标签来提示用户
<div id="not_open_js">对不起,你的浏览器没有打开JavaScript脚本支持!</div><div id="pldiv" style="display:none;">这里是正常要显示的内容——即如果javascript开启的话要显示的内容。一般都是基于javascript应用的程序,比如评论表单等。</div><script>document.getElementById("not_open_js").style.display='none';document.getElementById("pldiv").style.display='block';</script>
Activity
cxwht commentedon Jan 27, 2020
可以使用 noscript标签来提示用户
zhaofeipeter commentedon Jul 28, 2020
<div id="not_open_js">对不起,你的浏览器没有打开JavaScript脚本支持!</div>
<div id="pldiv" style="display:none;">
这里是正常要显示的内容——即如果javascript开启的话要显示的内容。一般都是基于javascript应用的程序,比如评论表单等。
</div>
<script>
document.getElementById("not_open_js").style.display='none';
document.getElementById("pldiv").style.display='block';
</script>