我讀了一下按位JavaScript運算符here。爲什麼'^ 9等於9?
9 (base 10) = 00000000000000000000000000001001 (base 2)
14 (base 10) = 00000000000000000000000000001110 (base 2)
--------------------------------
14^9 (base 10) = 00000000000000000000000000000111 (base 2) = 7 (base 10)
想知道下面的表達式是如何9?
''^9
感謝編輯@Rob W.我會在未來的小心。 – rajakvk 2013-05-11 10:21:29