Id: {
editable: false,
nullable: true
},
CustomerID: {
editable: true,
type: Integer
},
CompanyName: {
editable: true,
type: String
},
ContactName: {
editable: true,
type: String
}
嗨,有沒有在JavaScript或jQuery中可以將此字符串轉換爲對象的方法?將字符串轉換爲對象javascript/jquery
謝謝。
怎麼辦你得到那個字符串? – undefined 2015-03-25 02:17:52
JSON不支持函數值(如字符串或整型,也不支持所有瀏覽器(版本) – DoronG 2015-03-25 03:07:04
該字符串應該是動態的,我從數據庫表中讀取字段 – confused 2015-03-25 03:08:18