這樣寫是否有問題啊
function openWindow()
??? {
??????? var a;
??????? var b;
??????? a=confirm("是否打開?");
??????? if(a==true){
??????????? b=prompt("請輸入‘確認’點擊確定打開網(wǎng)站");
??????????? if(b=="確認"){
??????????? window.open('http//idcbgp.cn/');
?????????? ?
?????????? ?
??????????? }else{
??????????? document.write("輸入有誤");
??????????? }
??????? }else{
??????????? document.write("已經(jīng)取消");
??????? }
??? }
2019-10-15
語法沒問題,但是你網(wǎng)址拼錯了,http后面應該有個冒號。