<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>window對象</title><script type="text/javascript">?alert("歡迎來到LOL!");?function abc(){? ? window.open("http://www.baidu.com","_blank","width=600,height=400");?}</script></head><body><form><input type="button" value="點擊我,打開新窗口"? onclick="abc()"/></form></body></html>
window.open()里面的網(wǎng)址加http://才會顯示?不加是指本地的嗎?http與https又有什么區(qū)別?
fanaiwen
2017-11-28 14:33:06