阅读背景:

How to call server side function from json?

来源:互联网 

this is my code

这是我的代码

<script type="text/JavaScript">
     var myarray = new array();
     function getsvg1() {

         $.ajax({
         alert("hello");
             type: "post",
             url: "WebForm1.aspx/getsvg1",
             alert("abc");
             contentType: "application/json; charset=utf-8",
             dataType: "json",
             success: function (response) {
                 var cars = response.d;
                 alert(cars);
                 alert("hi");
             },
             failure: function (msg) {

                 $('#output').text(msg);

             }
         });
    }
</SCRIPT>
<script type="text/J



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: