JS有自动垃圾清理机制, 如果有不需要用的对象,只需要设置对象=null即可 Var a = new object() a = null 转载于:https://www.cnblogs.com/Young-shi/p/10453536.html