读书人

一个简略ajax

发布时间: 2013-01-17 10:28:54 作者: rapoo

一个简单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>

读书人网 >Ajax

热点推荐