摘要: var obj = {}; setKeyAndValue(key,value){ obj[key]=value } setKeyAndValue("name","张三"); setKeyAndValue("age",18); console.log(obj.name)//"张三" 阅读全文
posted @ 2020-12-17 11:17 WANGHUAN- 阅读(2640) 评论(0) 推荐(0) 编辑