// string 转 object
const string2Object = str => {
return JSON.stringify(str)
}
// object 转 string
const object2String = obj => {
return JSON.parse(obj)
}
这个两个都错了 不懂你是怎么写过去的
Vue 中 Select Option value 不能是对象vue中使用select时 如果使用 v-model 那么 option 值不能使用对象,需要将对象转换成字符串 定义一个 filter object2string 绑定 ...