<!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( location.href+"<br/>");???? var ahref=location.href;???? function test(){???? window.open("ahref" ,"_blank","width=400px,height=400px")???? }?</script></head><body><input type="button" value="點擊彈出"? onclick="test()"></body></html>為什么新打開的窗口不是location.href?
javascript問題
hawthornn
2016-01-05 16:42:04