求助 当倒计时为0时执行后台select方法
<head runat="server">
<title></title>
<script type="text/javascript">
//15秒倒计时
var start = 15;
var step = -1;
function count()
{
document.getElementById("DaoJiShi").innerHTML = start;
start += step;
if (start < 0)
start = 15;
setTimeout("count()", 1000);
}
window.onload = count;
</script>
</head>
<body>
<form id="form1" runat="server">
<%--倒计时--%>
<div style="float:right; margin-right:15px; color:red; line-height:33px;">
<asp:label ID="Label1" language_text="language_text_23" runat="server">
距离下次更新时间,还有</asp:label>
<asp:Label ID="DaoJiShi" runat="server"></asp:Label>
<asp:Label ID="Label2" runat="server">秒</asp:Label>
</div>
</form>
</body>
上面是网页代码,如何当start=0时,执行后台select代码?
求大神指教,新手 请直接写下那句话~~谢谢!
------解决方案--------------------
你说会用了,然后给了分我才复制过来给你的。。
$.ajax({
url: '/路径/select',
type: 'POST',
contentType: 'application/json',
success: function(){
&nb