标签:asc turn str logs 操作符 函数 log cti valueof
题目如下:
var s1 = "01"; var s2 = "1.1"; var s3 = "z"; var b = false; var f = 1.1; var = { valueOf: function() { return -1; } }; s1= -s1; //-1 s2 = -s2; //-1.1 s3 = -s3; //NaN b = -b; //0 f = -f; //-1.1 o = -o; //1
解释:
标签:asc turn str logs 操作符 函数 log cti valueof
原文地址:http://www.cnblogs.com/1rookie/p/6912165.html