<?php class DBDA { public $host="localhost"; public $uid = "root"; public $pwd = "123"; public $dbname = "mydb"; //成员方法 public function Query($sql,$type=1) { $db = new MySQLi($this->host,$this->uid,$this-&g…
var str1 ='[{"name":"kevin","age":18},{"name":"rose","age":16}]'; String.prototype.transArray=function(){ var str =this.replace(/\[/,''); var newstr = str.replace(/\]/,''); var arr1 = n…