這樣為什么沒有輸出URL
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>location</title>
</head>
?<script type="text/javascript">
? ? //window.location.herf="" ? ?//定義屬性 ";
? ? //document.write(window.location.herf);?
? ? var b=location.href;
? ? document.write(b);
?</script>
</head>
<body>
</body>
</html>
2017-02-14
window.location.herf="" ? ?//定義屬性 ";
window.location.href="" ? ?//定義屬性 ";
2017-01-16
可以的啊
2016-12-20
可以運行。
2016-12-17
沒問題
2016-12-01
var b=window.location.href,你少了個window
2016-11-22
我的可以輸出啊