<script type="text/javascript"> var a = "123" var b = typeof(a)//string var c = Number(a)//123 var d = typeof(c)//number var e = parseInt(a,10)//123 var f = typeof(e)//number var g = parseFloat(a)//123 var h = typeof(g)//number var i = String(a)//123 var j = typeof(i)//string var k = Boolean(a)//true var l = typeof(k)//Boolean var n = a.toString()//123 var m = typeof(n)//string </script>
isNaN() 判断是不是NaN类型,返回true或false
++ -- 正+ 负- (一元正负)