為什么我的結(jié)果總顯示undefined?
<!DOCTYPE?HTML> <html> <head> <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"> <title>location</title> </head> ?<script?type="text/javascript"> ????????document.write(window.location.herf); ????? ?</script> </head> <body> </body> </html>
2016-01-06
代碼寫錯(cuò)了,是href, ? ?不是herf
2015-11-25
寫代碼認(rèn)真一點(diǎn)先把代碼寫對(duì)再來問問題吧朋友。
window.location.href ? 不是herf