与JavaScript中的Object.freeze或Object.seal相反 [英] Opposite of Object.freeze or Object.seal in JavaScript

查看:639
本文介绍了与JavaScript中的Object.freeze或Object.seal相反的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Object.freeze Object.seal 的反义词是什么?是否存在具有诸如detach之类的名称的函数?

What is the opposite of Object.freeze or Object.seal? Is there a function that has a name such as detach?

推荐答案

一旦对象出现,就无法做到这一点冻结没有办法解冻它。

There is no way to do this, once an object has been frozen there is no way to unfreeze it.

来源


冻结对象是锁定的最终形式。一旦对象
被冻结,它就不会被解冻 - 也不能以任何
的方式被篡改。这是确保您的对象与您离开时完全保持
的最佳方式,无限期地

Freezing an object is the ultimate form of lock-down. Once an object has been frozen it cannot be unfrozen – nor can it be tampered in any manner. This is the best way to make sure that your objects will stay exactly as you left them, indefinitely

这篇关于与JavaScript中的Object.freeze或Object.seal相反的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆