JS对象—数组总结(创建.属性.方法) 1.创建字符串 1.1 new Array() var arr1 = new Array(); var arr2 = new Array(6); 数组的长度为6 var arr3 = new Array(1, 2, 3, 4); 括号中的元素为数组的项, length为元素个数 1.2 [] (简写) var arr4 = [1,2,3,4] 2.数组的属性 2.1 constructor 对创建数组对象的Array构造函数的引用, 2.
1,在protected/config/main.php目录下修改如下目录 'modules'=>array( // uncomment the following to enable the Gii tool 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'xw0987', // If removed, Gii defaults to localhost only. Edit carefully to tas