##使用includes
有则返回true没有返回false
var wanjunshijie = 'wanjunshijie'
var blog = '这是测试内容wanjunshijie'
document.write(blog.includes(wanjunshijie));
运行结果
true
##使用includes
有则返回true没有返回false
var wanjunshijie = 'wanjunshijie'
var blog = '这是测试内容wanjunshijie'
document.write(blog.includes(wanjunshijie));
运行结果
true