I have two arrays, two arrays loop through, truncating the labelID:4 in one array and the id in the other array
var select = [{
labelID:4,
},{
labelID:5
},{
labelID:7,
}];
var publishedLabel = [{
active : true
createTime : null
creatorID : 0
high : 0
id : 1
low : 0
modifierID : 0
modifyTime : null
name : ""
sort : 0
status : 0
type :0
},{
active : true
createTime : null
creatorID : 0
high : 0
id : 2
low : 0
modifierID : 0
modifyTime : null
name : ""
sort : 0
status : 0
type :0
},{
active : true
createTime : null
creatorID : 0
high : 0
id : 3
low : 0
modifierID : 0
modifyTime : null
name : ""
sort : 0
status : 0
type :0
},{
active : true
createTime : null
creatorID : 0
high : 0
id : 4
low : 0
modifierID : 0
modifyTime : null
name : ""
sort : 0
status : 0
type :0
},{
active : true
createTime : null
creatorID : 0
high : 0
id : 5
low : 0
modifierID : 0
modifyTime : null
name : ""
sort : 0
status : 0
type :0
},{
active : true
createTime : null
creatorID : 0
high : 0
id : 6
low : 0
modifierID : 0
modifyTime : null
name : ""
sort : 0
status : 0
type :0
},]
are these two arrays, which are truncated through a loop. The description of the-sharp-sharp-sharp problem that is different between labelID in select and id in publishedLabel
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)