日期:2014-05-16 浏览次数:20883 次
 var option = {
            type: "post",
            url: "../xxx/xxx.aspx/selectbytid",
            data: "{'tid':'" + cid + "'}",
            contentType: "application/json;charset=utf-8",
            dataType: "json",
            success: function (response) {
                var o = jQuery.parseJSON(response.d);
                if (o != null) {
                    $("#type").attr("Value", o.TypeId);
                    $("#ptype").show();
                    var option = { type: "post",
                        url: "../xx/xxx.aspx/SelectType",
                        data: "{'pid':'" + o.TypeId + "'}",
                        contentType: "application/json;charset=utf-8",
                        dataType: "JSON",
                        success: function (response) {
                            var n = eval(response);
                            $("#ptype").append(n.d); //这里绑定选种项
                            $("#ptype").attr("Value", o.ptype);//这里绑定选种项
                        }
                    }
                    $.ajax(option); &