每天一篇javascript学习小结(基础知识)

时间:2024-02-11 05:05:45
【文件属性】:

文件名称:每天一篇javascript学习小结(基础知识)

文件大小:58KB

文件格式:PDF

更新时间:2024-02-11 05:05:45

AS asc c

1、字符转换 var s1 = 01; var s2 = 1.1; var s3 = z;//字母'z'无法转换为数字,所以或返回NaN var b = false; var f = 1.1; var o = { valueOf: function() { return -1; } }; s1 = -s1; //value becomes numeric -1 s2 = -s2; //value becomes numeric -1.1 s3 = -s3; //value becomes NaN b = -b; /


网友评论