数组对象根据value查询当前对象
products:[
{label:'专用工具',value:0},
{label:'安装件',value:1},
{label:'备品备件',value:2}
],
var product= this.products.filter((item) => item.value == 2)[0]
//打印product {label:'备品备件',value:2}
数组对象根据value查询当前对象
products:[
{label:'专用工具',value:0},
{label:'安装件',value:1},
{label:'备品备件',value:2}
],
var product= this.products.filter((item) => item.value == 2)[0]
//打印product {label:'备品备件',value:2}