text: (window.webpackJsonp=window.webpackJsonp||[]).push([[54],{319:function(e,t,n){"use strict";n.r(t);var s=n(1),c=Object(s.a)({},function(){this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"content"},[n("h4",{attrs:{id:"object-seal与freeze区别"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#object-seal与freeze区别","aria-hidden":"true"}},[e._v("#")]),e._v(" Object.seal与freeze区别")]),e._v(" "),n("pre",[n("code",[e._v("1.Oject.seal是封印对象，但是封印完对象还可以对对象进行读写\n  Object.freeze是冻结对象，冻结后的对象不可以进行读写，只可以进行查看\n2.Object.isExtensible()查看对象是否可以扩展\n3.Object.isSealed()查看对象是否封印\n  Object.isFrozen()查看对象是否冻结\n")])]),e._v(" "),n("blockquote",[n("p",[e._v("冻结对象的方法")])]),e._v(" "),n("pre",[n("code",[e._v("1.Object.seal\n2.Object.freeze\n3.Object.preventExentsinos()  ")])])])}],!1,null,null,null);t.default=c.exports}}]);