代码编辑器:
x
1
<h1>使用 "use strict"</h1>
2
<h3>不允许删除函数</h3>
3
<p>浏览器按下 F12 开启调试模式,查看报错信息</p>
4
<script>
5
"use strict";
6
function x(p1, p2) {};
7
delete x;
8
</script>
9
<h1>使用 "use strict"</h1>
<h3>不允许删除函数</h3>
<p>浏览器按下 F12 开启调试模式,查看报错信息</p>
<script>
"use strict";
function x(p1, p2) {};
delete x;
</script>