我跑this code in JSBin,我也得到一个控制台输出预期:的Javascript奇怪的行为和铬
//matrix C before multiplySeq function call
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
//matrix C after multiplySeq function call
[[6, 6, 6], [6, 6, 6], [6, 6, 6]]
然而,当我运行相同的代码,Firefox和Chrome,我得到:
//matrix C before multiplySeq function call
[[6, 6, 6], [6, 6, 6], [6, 6, 6]]
//matrix C after multiplySeq function call
[[6, 6, 6], [6, 6, 6], [6, 6, 6]]
我不知道发生了什么,有人可以指出我可能会在这里失踪?
PS:我得到所需的输出,当我在IE测试(哇,没想到我会那么说)
清除缓存,我得到预期的结果。 –
不是真的..我想这是一个缓存问题 – karthikr
[怪异的行为与数组的javascript](http://stackoverflow.com/questions/13766973/weird-behaviour-of-javascript-with-arrays) –