public historyList:any[] = [];
if(this.historyList.indexOf(this.content)==-1){
this.historyList.push(this.content);
}
less创建数组+判断数组中有无content值,如果无,则添加
最新推荐文章于 2022-05-26 14:34:20 发布
public historyList:any[] = [];
if(this.historyList.indexOf(this.content)==-1){
this.historyList.push(this.content);
}