52,797
社区成员
发帖
与我相关
我的任务
分享
function ReShow() {
SelectPoint(url,param,function(){callback();});//这是一个AJAX请求,用来显示选择的“事故点”
Compute(url,param,function(){callback();});//这是另一个AJAX请求,用来显示圆的
}
<script type="text/javascript" src="Scripts/jquery-1.4.1.js"></script>
<script type="text/javascript">
window.setInterval("AutoCounter()", 2000);
function AutoCounter() {
$.ajax({
url: "AutoCounterForm.aspx",
type: "Get",
success: function (data) {
$("#ShowResult").html(data);
},
error: function () {
}
});
}
<div id="ShowResult"></div>
public static Int32 counter;
protected void Page_Load(object sender, EventArgs e)
{
Response.Expires = -1;
Response.Write(counter++);
Response.End();
}