写在前:定义一个对象
let obj = {}
当前是一个空的对象,新增键值对
obj['name'] = "静静"
obj['time'] = "2010"
现在,打印这个对象,如下所示
{name: "静静", time: "2010"}
写在前:定义一个对象
let obj = {}
当前是一个空的对象,新增键值对
obj['name'] = "静静"
obj['time'] = "2010"
现在,打印这个对象,如下所示
{name: "静静", time: "2010"}