0
我想要得到一個GET Ajax請求的值,並把它變成另一個jQuery函數jQuery的阿賈克斯獲取變量從PHP和設定值等jQuery函數
$(document).ready(function(){
var callAjax = function(){
$.ajax({
method:'get',
url:'getrecord.php',
success:function(data){
$("#sample").html(data);
}
});
}
setInterval(callAjax,10000);
});
在getrecord.php我只是有我需要在此其他功能放置的回波蘭特數-where號碼10是放置該代替樣品的div
$('#ten').prop('number', 10).animateNumber({
number: 100
},
2000
);
我怎樣才能做到這一點被打印?提前致謝!