看板
[ Ajax ]
討論串物件傳遞問題
共 5 篇文章
內容預覽:
the first setObj is doing `pass by value`, not `pass by reference`.. js does not support passing by reference for types such as string,. number, or bo
(還有25個字)
內容預覽:
後來改用TonyQ大的方法. var main = {. data : {},. setData : function() {. setObj(this, "data"); // 依指定屬性名稱. alert(this.data.id); // print 123. }. };. function
(還有113個字)