為什么我點擊確定會跳入http://www.xianlaiwan.cn/error/noexists這個網址。并且在prompt對話框里填入別的網址也不生效,還是跳轉到http://www.xianlaiwan.cn/error/noexists。哪位能回答一下,謝謝!
為什么我點擊確定會跳入http://www.xianlaiwan.cn/error/noexists這個網址。并且在prompt對話框里填入別的網址也不生效,還是跳轉到http://www.xianlaiwan.cn/error/noexists。哪位能回答一下,謝謝!
2014-12-21
該網頁上的鏈接復制中的冒號是中文的,你的修改一下才是一個合法的獨立URL,或者你直接拷貝這個:http://www.xianlaiwan.cn/
2014-12-19
var temp = prompt();
然后在window.open的第一個參數放temp就行了