首页 > 代码库 > jquery ajax

jquery ajax

.getJSON(‘../Ajaxload/UptateDoor.ashx?date=‘ + new Date()+‘&sate=1‘+‘&room=‘+no, function (st) {
if(st.con =="open")
{
var elein = document.getElementById(‘animation_element‘);
elein.setAttribute(‘src‘, ‘img/jiance/门锁开.png‘);
fadein(elein, 80, 6000);
}
else if (st.com == "no") {
alert("修改失败!");
}
});

jquery ajax