摘要:
xxxxxxxxxx <!--js输出Unicode--> <script> console.log("\u2620"); </script> <!--html输出Unicode--> <h1 style="font-size: 200px">⚀</h1> 阅读全文
posted @ 2020-06-01 20:58
阿布都日
阅读(270)
评论(0)
推荐(0)
摘要:
x var a = 12345; var b = 0xabc; var c = 07654; var d = 0b010; //16值把前面的数字看成16进制解析 var e = parseInt(123,16); 阅读全文
posted @ 2020-06-01 14:55
阿布都日
阅读(154)
评论(0)
推荐(0)
摘要:
x //获取有效整数 var a=123px; console.log(parseInt(a)); //获取有效数字 var b=123px; console.log(parseFloat(b)); 阅读全文
posted @ 2020-06-01 14:31
阿布都日
阅读(182)
评论(0)
推荐(0)
摘要:
x //a不能是null或undefined 不然报错 var a=true; console.log(a.toString()); //无限制 var b=true; console.log(String(b)); 阅读全文
posted @ 2020-06-01 14:14
阿布都日
阅读(148)
评论(0)
推荐(0)
摘要:
x var c=Infinity; var d=-Infinity; var e="abc"*"bcd"; console.log("c",c,"Infinity","Number"); console.log("d",d,"-Infinity","Number"); console.log("e" 阅读全文
posted @ 2020-06-01 13:42
阿布都日
阅读(162)
评论(0)
推荐(0)
摘要:
xxxxxxxxxx var a=123; var b="123"; console.log("a",a, typeof a); console.log("b",b,typeof b); 阅读全文
posted @ 2020-06-01 13:36
阿布都日
阅读(494)
评论(0)
推荐(0)
摘要:
单引号定义字符串 - 可以包含双引号 - 可以转义里面单引号 双引号定义字符创 - 可以包含单引号 - 可以转义里面双引号 `号 - 可以包含双引号和单引号 阅读全文
posted @ 2020-06-01 13:22
阿布都日
阅读(221)
评论(0)
推荐(0)
摘要:
x ** * String * Number * Boolean * Null * Undefined * Object */ 阅读全文
posted @ 2020-06-01 13:13
阿布都日
阅读(143)
评论(0)
推荐(0)
摘要:
/*多行注释*/ //单行注释 阅读全文
posted @ 2020-06-01 12:39
阿布都日
阅读(106)
评论(0)
推荐(0)
摘要:
 阅读全文
posted @ 2020-06-01 12:30
阿布都日
阅读(171)
评论(0)
推荐(0)
摘要:
<script type="text/javascript"> alert("警告框"); document.write("输出到文档"); console.log("s输出到控制台"); </script> 阅读全文
posted @ 2020-06-01 12:18
阿布都日
阅读(114)
评论(0)
推荐(0)

浙公网安备 33010602011771号