如下
typeof Number('44.5'); typeof parseInt('44.5'); typeof parseFloat('44.5'); typeof ('44.5'-0); typeof +'44.5'; typeof ('44.5'*1); typeof ~~'44.5';//http://james.padolsey.com/javascript/double-bitwise-not/ typeof '44.5'|0
还有其它的吗?
如下
typeof Number('44.5'); typeof parseInt('44.5'); typeof parseFloat('44.5'); typeof ('44.5'-0); typeof +'44.5'; typeof ('44.5'*1); typeof ~~'44.5';//http://james.padolsey.com/javascript/double-bitwise-not/ typeof '44.5'|0
还有其它的吗?