AJAX异步调用

前台:

 function readygo(v) {
            $.ajax({
                type: "post",
                contentType: "application/json",
                data: "{ v: ''}",
                url: "页面/t",
                dataType: "json",
                success: function (data) {
                    if (data.d != "") {
                    }
                }
            });
        }

后台:

 [WebMethod]
        public static string t(string v)
        {
            return “”;
        }

 

posted @ 2014-01-02 11:59  蔡云云  阅读(182)  评论(0编辑  收藏  举报