//定义计时器
setInterval(‘GetDB()‘, 1000);
//获取代办任务
function GetDB() {
$.ajax({
type: "Get",
dataType: "json",
async: false,
url: ‘/Ajax/Common/Attachment.ashx‘,
data: ‘HandlerType=getdb&rand=‘ + newCommon.atrand(10000000),
success: function (data) {
//document.getElementById(‘TodoItemCount‘).innerHTML(data);
$("#TodoItemCount").html(data);
}
});
}