我想我的语法有问题。我想让它说如果 url 的 indexof 425 或者 url 的 indexof 297 不要运行以下。这仅适用于做一个:
if (document.location.href.indexOf('425') === -1){
但是当我尝试添加第二个索引时它不起作用,这是我尝试过的
//attempt 1
if (document.location.href.indexOf('425') === -1 || document.location.href.indexOf('297') === -1){
}
//attempt 2
if ((document.location.href.indexOf('425')) === -1 || (document.location.href.indexOf('297')) === -1)){
}
 温温酱
温温酱 
					波斯汪
 
					子衿沉夜
 随时随地看视频慕课网APP
随时随地看视频慕课网APP
相关分类