注:testfunction 为须要请求的方法名称io
var int = window.setInterval(testfunction , 4000);//每4秒执行一次
直到触发function
int = window.clearInterval(int)
时中断test