MENU

JS中跳转无效

February 7, 2020 • 默认分类

function doDelete(sid) {
            var flag = confirm("确认删除编号为 " + sid + " 的记录吗?");
            if (flag) {
                window.location.href = "delStudent?sid=" + sid;
                return false;
            }
        }

以上代码跳转连接会无效,无法跳转

function doDelete(sid) {
            var flag = confirm("确认删除编号为 " + sid + " 的记录吗?");
            if (flag) {
                window.location.href = "delStudent?sid=" + sid;
                return false;
            }
            window.event.returnValue=false;
        }
Archives QR Code Tip
QR Code for this page
Tipping QR Code