v-if模糊判断-前端-E先生的博客
Java
MySQL
大数据
Python
前端
黑科技
大语言模型
    首页 >> 互联网 >> 前端

v-if模糊判断

[导读]:<div><inputv-for="itemintype"v-if="item.includes(tiaojian)"</div>查找字符串是否包含 "Easy":varstr="Helloworld,welcometotheEasy。";varn=&n...
<div>
 <input v-for="item in type" v-if="item.includes(tiaojian)" 
</div>

 

查找字符串是否包含 "Easy":


var str = "Hello world, welcome to the Easy。";
var n = str.includes("Easy");
n 输出结果:
true


image.png


本文来自E先生的博客,如若转载,请注明出处:https://www.javajz.cn

留言区

联系人:
手   机:
内   容:
验证码:

历史留言

欢迎加Easy的QQ