日期:2014-05-16 浏览次数:20722 次
   $(function () {
            $("#Button1").click(function () {
                $.ajax({
                    type: "post",
                    url: "JQUERY.aspx/Inserts",
                    contentType: "application/json; charset=utf-8",                   
                    dataType: "json",
                    success: function (data) {
                        alert(data.d);
                    },error:function(xhr){alert('错误'+xhr.responseText)}///增加error回调看输出什么
                });