Jackiesteed

www.github.com/jackiesteed

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年1月23日

摘要: var myList =newObject();var item =newObject();item.text ="item-1";myList[3]= item;console.log(myList);console.log(myList[3].text);// Assign another object to the same entryvar item2 =newObject();item2.text ="item-2";myList[3]= item2;console.log(myList);console.log(myList[3].text) 阅读全文
posted @ 2014-01-23 16:41 Jackiesteed 阅读(1168) 评论(0) 推荐(0) 编辑