2012-02-27 107 views

回答

1

Inside document.ready

$.ajax({ 
     type: "POST", 
     url: "Service.svc/WebServiceMethodName", 
     data: JSON2.stringify({ UrParameter: UrparameterValue}),//Parameter to pass 
     contentType: "application/json; charset=utf-8", 
     dataType: "json", 
     success: function() { 
     //Do Some Stuff here 

     } 

    }) 

不要忘记包括jsjson2.js。它是一个示例code.U可以修改它作为您的要求。