把控件名称放在数组中,然后你去数据中判断你的控件名称是否存在就行了
var darray = [];
const element = "LABEL0";//控件名称要大写!!
$.each(this.options.form.name_widgets, function(i, item) {
darray.push(item.getName());
}
);
if (darray.includes(element)) {
console.log("该元素存在于数组中");
} else {
console.log("该元素不存在于数组中");
}

