為什么跳轉(zhuǎn)沒反應(yīng),重新打開一個(gè)窗口就行
window.location="http://idcbgp.cn/"; window.location.assign("http://www.w3school.com.cn"); window.location.; window.open("http://idcbgp.cn/","_blank","width=500px,height=500px"); ?只有最后一行重新打開頁(yè)面才有反應(yīng),其他的都沒效果
2018-05-12
哇 學(xué)到了
2018-04-28
得引入JavaScript引用語(yǔ)句:<script type="text/javascript" language="javascript">
另外也得有HTML標(biāo)簽才行,具體如下:
<html>
<head>
<script type="text/javascript">
window.location="http://idcbgp.cn/";
? ? ? ? window.location.assign("http://www.w3school.com.cn");
? ? ? ? window.location.;
? ? ? ? window.open("http://idcbgp.cn/","_blank","width=500px,height=500px");
</script>
</head>
</html>
還有注意你第二行結(jié)尾用了中文分號(hào)