<script src="script/<a%20style=" color: text-decoration:underline title="jquery" href="https://www.php.cn/zt/15736.html" target="_blank">jquery-1.3.2.js" type="text/jscript"></script>
<script type="text/jscript"> <BR>function show(num) { <BR>var params = '{str:"'+ num+'"}'; <BR>$.<a style="color:#f60; text-decoration:underline;" title= "ajax" href="https://www.php.cn/zt/15849.html" target="_blank">ajax({ <BR>type: "POST", <BR>url: "default.aspx/aa", <BR>data: params, <BR>dataType: "text", <BR>contentType: "application/json; charset=utf-8", <BR>beforeSend: function(XMLHttpRequest) { <BR>$('#show').text("正在查询"); <BR>}, <BR>success: function(msg) { <BR>$('#show').text(eval("(" + msg + ")").d); <BR>}, <BR>error: function(xhr, msg, e) { alert(msg); } <BR>}); <BR>} <BR></script>
后台方法:
[System.Web.Services.WebMethod()]
public static string aa(string str)
{
return str;
}









