WebApplication/User/Js/modelhanda.js

(开头部分) 12KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

function GetQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]); return null;
}
$(function () {
    $("#button2").click(function () {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    });
    if ($("#QuestionType").length > 0) {
        $("#divAnswer").hide();
        $("#OptionNum>option:eq(0)").remove();
        $("#OptionNum").parent().hide();
        $("#QuestionType").change(function () {
            if ($("#QuestionType").val() == "单选题") {
                $("#verifydiv").hide();
                $("#radiodiv").show();
                $("#checkdiv").hide();
                $("#divAnswer").show();
                $("#OptionNum").parent().show();
            }
            else if ($("#QuestionType").val() == "多选题") {
                $("#verifydiv").hide();
                $("#radiodiv").hide();
                $("#checkdiv").show();
                $("#divAnswer").show();
                $("#OptionNum").parent().show();
            }
            else if ($("#QuestionType").val() == "判断题") {
                $("#verifydiv").show();
                $("#radiodiv").hide();
                $("#checkdiv").hide();
                $("#divAnswer").show();
                $("#OptionNum").parent().hide();
            }
            else {
                $("#divAnswer").hide();
                $("#OptionNum").parent().hide();
            }
        });
        $("#OptionNum").change(function () {
            var number = $("#OptionNum").val();
            for (i = 2; i <= 9; i++) {
                if (i <= parseInt(number)) {
                    $("#l1" + i).show();
                    $("#a11" + i).show();
                    $("#l2" + i).show();
                    $("#a12" + i).show();
                }
                else {
                    $("#l1" + i).hide();
                    $("#a11" + i).hide();
                    $("#l2" + i).hide();
                    $("#a12" + i).hide();
                }
            }
        });
    }

后面还有 207 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。