87,907
社区成员
发帖
与我相关
我的任务
分享
$("#btnHelloWorld").click(function(){
$.ajax({
type: "POST",
contentType:"application/json",
url:"WebService1.asmx/HelloWorld",
data:"{}",
dataType:'json',
success:function(result){
alert(result.d);
}
});
});
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}