随笔分类 -  javascript

摘要:var firstInterval; var secondInterval; function firstAlert(){ if(firstInterval) clearInterval(firstInterval);//这个是重点 //处理全部 ......... firstInterval = 阅读全文
posted @ 2019-11-28 11:55 刘中俊 阅读(1362) 评论(0) 推荐(0)
摘要:获取分组后取某字段最大一条记录方法一:(效率最高)select * from test as awhere typeindex = (select max(b.typeindex)from test as bwhere a.type = b.type );方法二:(效率次之)selecta.* fr 阅读全文
posted @ 2019-11-27 17:32 刘中俊 阅读(6605) 评论(0) 推荐(0)
摘要:1.url:要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type:要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。 3.timeout:要求为Number类型的参数, 阅读全文
posted @ 2019-11-27 17:14 刘中俊 阅读(101) 评论(0) 推荐(0)