当前位置:网站首页>JS判断包含:includes

JS判断包含:includes

2022-06-10 11:55:00 000000001111

JS判断包含

this.houseInfo.houseTypeName = '测试包含别墅';
if(this.houseInfo.houseTypeName.includes("别墅")){
    
	alert("我包含别墅");
}else{
    
	alert("我不包含别墅");
}
原网站

版权声明
本文为[000000001111]所创,转载请带上原文链接,感谢
https://haozhongping.blog.csdn.net/article/details/124999607