let list = []
list['name'] = name
list['tel'] = phone
list['birthday'] = birthday
list['sex'] = sex.id
list=JSON.stringify(list)
console.log(list);
list中有数据,但是通过JSON.stringify()转换后输出的是[ ],百思不得其解
let list = []
list['name'] = name
list['tel'] = phone
list['birthday'] = birthday
list['sex'] = sex.id
list=JSON.stringify(list)
console.log(list);
list中有数据,但是通过JSON.stringify()转换后输出的是[ ],百思不得其解