(js)禁选下拉选框数组中包含的指定字符项 const targetStr = ['编号', '日期', '时间', '标注'] this.ziduanOptions.forEach((item) => { targetStr.forEach((ele) => { if (item.projectName.includes(ele)) { this.$set(item, 'disabled', true) } }) })