用jquery的ajax方法实现简单的数字显示
要显示数字的页:
function showCount()
{
$('#<font color="red">(<span id="lblCount" ></span>)</font>').appendTo(lblTreeTitle);
showCurrentCount(this);
}
js方法:
var ajaxPage = "http://www.cnblogs.com/Common/GetData.aspx";var queryType = "querytype";function showCurrentCount(){$('#lblCount').load(ajaxPage, { querytype: "count" });}
获取数字的后台方法:
string result=“10”;Response.Write(result);
Response.End();
HelloWorld