console.log(navigator.platform); // Win32
Object.defineProperty(navigator, 'platform', {
value: 'cc',
writable: true,
configurable: true,
enumerable: true,
});
console.log(navigator.platform); // cc
js 改变只读属性的值
猜你喜欢
转载自www.cnblogs.com/ajanuw/p/10331173.html
今日推荐
周排行