javascript里的+new Date写法

一直不会,今天看到了,大牛亚利告诉我的:

http://interglacial.com/javascript_spec/a-11.html

里说:

11.4.6 Unary + Operator

The unary + operator converts its operand to Number type.

The production UnaryExpression : + UnaryExpression is evaluated as follows:

posted @ 2010-03-26 17:41  new 维生素C.net()  阅读(557)  评论(0编辑  收藏  举报