回答

7

嗯,是嗎?有|||之間的主要區別,以及polyfills應該使用:

Date.now = Date.now || function() {return +new Date;}; 

畢竟,如果你用這樣的:

Date.now = Date.now | function() {return +new Date;}; 

你會得到的結果0覆蓋功能。

+0

我很高興我問! :) 謝謝! – 2013-03-16 03:36:44