Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/436.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jquery如何在警报消息中显示值_Javascript_Jquery_Html_Json_Ajax - Fatal编程技术网

Javascript jquery如何在警报消息中显示值

Javascript jquery如何在警报消息中显示值,javascript,jquery,html,json,ajax,Javascript,Jquery,Html,Json,Ajax,这是我的代码,请帮我查询 $("#update").click(function () { var security_code = (red[0]["id"]); var sector_class_id = (red[0]["cid"]); var sector_id = $("#s1").val(); $.ajax({ type: "POST", url: "Default.aspx/update", conte

这是我的代码,请帮我查询

$("#update").click(function () {
    var security_code = (red[0]["id"]);
    var sector_class_id = (red[0]["cid"]);
    var sector_id = $("#s1").val();

    $.ajax({
        type: "POST",
        url: "Default.aspx/update",
        contentType: "application/json; charset=utf-8",
        data: JSON.stringify({ security_code: security_code, sector_class_id: sector_class_id, sector_id: sector_id }),
        dataType: "json",
        success: function (response) {

            var updatedata = (response.d);
            var ud1 = JSON.parse(updatedata);

            udata = $.map(ud1, function (n, i) {
                var temp7 =
                {

                secr_code: n.SECURITY_CODE,
                sect_class: n.SECTOR_CLASS_ID,
                sect_id: n.SECTOR_ID
                }
                return temp7
            });

            $("#mod1").modal('hide');
            display();
            $("#t1").hide();
            $(".alert-succcess").alert();

            window.setTimeout(function () {
                $(".alert-success").fadeTo(2000, 500).slideUp(500, function () {
                    //$("#l1").val(security_code);//label values from db
                    //$("#l2").val(sector_class_id);//label values from db
                    //$("#s1").val(sector_id);// user selects n den updates value
                    $(".alert-success").slideUp(500);
                });
            });
        },
我想在我的警报消息中显示更新的值以及以前更新的值我应该怎么做
我该怎么办????

错误消息在哪里?请为我们提供警报的html。错误消息在哪里?请为我们提供警报的html