标签:log ons script bsp 变量 pre name style str
1、普通形式
<script> var stu = new Object(); stu.name = "ww"; console.log(stu);//{name: "ww"} </script>
2、特殊形式:数字或者变量
<script> var stu = new Object(); stu.name = "ww"; var aaa = "age"; stu[aaa] = 19; stu[0] = "男"; console.log(stu);//{0: "男", name: "ww", age: 19} </script>
标签:log ons script bsp 变量 pre name style str
原文地址:http://www.cnblogs.com/wuqiuxue/p/7851468.html