jquery ajax 的简单写法

  var options = {
                type: "POST",
                url: "/WEPM.OA.Web/OAHandler.ashx?Type=Grade&ProjectID=" + ProjectID + "&Batch=" + Batch,
                contextType: "application/json; charset=utf-8",
                dataType: "json",
                success: function(response) {
                    jQuery("#CountNumber").val(response.CountNumber);
                    jQuery("#AAper").val(response.AAper);
                    jQuery("#Aper").val(response.Aper);
                    jQuery("#BBper").val(response.BBper);
                    jQuery("#Bper").val(response.Bper);
                    jQuery("#Cper").val(response.Cper);
                    jQuery("#Dper").val(response.Dper);

                }
            }
            jQuery.ajax(options);

posted @ 2012-11-21 10:26  (二少)在南极  阅读(1767)  评论(0编辑  收藏  举报