请先看代码片段:
if(1>0){ window.location.href="a.html"; } if(1<0){ window.location.href="b.html"; }else{ window.location.href="c.html"; }为什么不跳转 a.html,反而跳转到了c.html
请先看代码片段:
if(1>0){ window.location.href="a.html"; } if(1<0){ window.location.href="b.html"; }else{ window.location.href="c.html"; }为什么不跳转 a.html,反而跳转到了c.html