首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

一个简略ajax

2013-01-17 
一个简单ajax?$(document).ready(function(){ ?setInterval(gog(),5000)?})??function gog(){???$.ajax

一个简单ajax

?$(document).ready(function(){

?
setInterval("gog()",5000);
?})
?
?function gog(){
???$.ajax({
???url : '<%=basePath %>remindaddRemind',
???type : 'post',
???dataType : "text",
???success : function(text) {
????isPro = false;
????alert(text);
????if(""!=text){
????$('#MyNoticesDiv').html(text);
????}
???}
??});?
?}
??? </script>

**************************************************************

??? <div id="MyNoticesDiv" style="height: 195;width: 195">
</div>

热点排行