【发布时间】:2015-08-15 22:04:28
【问题描述】:
新手问题:
js中可以删除或覆盖const对象吗?
const a = function myFunc(){}; // some code to delete 'a' and 'myFunc()' here.
【问题讨论】:
-
我在问这两个问题。
-
@davidLeak 为什么你认为这叫做“删除”?
-
我也指的是全局范围内的 const。
-
我可以为 a if const a 释放内存吗? ?
-
sorry const a = "string or something here".