冰冰点灯
照亮我的家门
 1 <!DOCTYPE html>
 2 <html>
 3 <head lang="en">
 4     <meta charset="UTF-8">
 5     <title></title>
 6 </head>
 7 <body>
 8 <script>
 9 
10 
11     var num1 = new Number(111);
12     console.log(num1);
13 
14     var num2 = Number("111");
15     console.log(num2);
16 
17     var aaa = new Strings(222);
18     console.log(aaa);
19 
20     var bbb = Strings("333");
21     console.log(bbb);
22     function Strings(num){
23         this["[[PrimitiveValue]]"] = num;
24         return num/1;
25     }
26 
27 
28 
29 </script>
30 </body>
31 </html>

 

posted on 2019-01-16 17:21  冰冰点灯  阅读(411)  评论(0)    收藏  举报