js 循环提交ajax请求

来源:互联网 发布:入门编程书籍推荐 编辑:程序博客网 时间:2024/05/01 13:20
function GetFeed() {  $.ajax({    url: '../WebService/Feed.asmx/GetFeed',    data: "{\"count\":10}",    type: 'post',    dataType: 'json',    contentType: 'application/json; charset=utf-8',    cache: false,    success: function (data) {        //显示在页面        ShowFeed();    },    error: function (xhr) {    }  });}function ShowFeed() {  forrun = setInterval("GetFeed()", 5000);}

0 0
原创粉丝点击