<script type="text/javascript" >

        $(document).ready(function () {

            $('#Label1').click(function () {


                $.ajax({
                    type: 'GET',
                    url: 'djb.aspx?sfzh=' + '3720510',
                    dataType: 'json',
                    success: function (data) {
                         //不需要解析,直接调用
                        //var parsedJson = $.parseJSON(data); 
                        alert(data.msg);
                    },
                    error: function (jqXHR) {
                        alert("失败!");
                    }
                });

                return false;

            });

        });
        
    </script>

 
            this.Response.Write( "{\"msg\":\"ok\"}"  );
            this.Response.Flush();
            this.Response.End();
        

 

 

 

posted on 2019-04-10 22:44  qqhfeng16  阅读(396)  评论(0编辑  收藏  举报