HTML
以 JavaScript 物件表示一筆資料 var obj = [ {"AA":"11", "BB":"22", "CCC":"33" }, {"BB":"1", "CC":"2" }];
var obj1 = [{ aa:"aaa", bb:"bbb" }] var obj2 = [{ cc:"cc" , dd:"dd" }] var TTT = obj1.concat({new:"new"} , obj2) TTT = JSON.stringify(TTT) = ⇊ TTT.length = delete TTT[1].new; = ⇊
沒有留言:
張貼留言