2

我正在尝试更改 window.navigator。但由于某种原因无法改变它:

--
[10:40:28.802] window.navigator['buildID'];
[10:40:28.811] "20121129162756"
--
[10:40:47.225] window.navigator['appCodeName'] = "I want to change it";
[10:40:47.234] "I want to change it"
--
[10:40:55.633] window.navigator['appCodeName'];
[10:40:55.643] "Mozilla"
--
[10:41:02.405] window.navigator['myProperty'] = 'someproperty';
[10:41:02.414] "someproperty"
--
[10:41:07.651] window.navigator['myProperty'];
[10:41:07.660] "someproperty"

希望我的问题很清楚:“如何更改 window.navigator?”

4

1 回答 1

5

你不能。其预先存在的属性是只读的。为什么要修改它超出了我的范围...

于 2013-01-02T15:48:04.630 回答