js 对象的键值对添加-爱忘记上吧

let obj = { id:1,name:2};

obj['dat'] = 3;

console.log(obj.dat , 1);

posted on 2019-07-31 17:16  因过竹林逢僧话  阅读(795)  评论(0)    收藏  举报