摘要: 定义一个变量 全局 c 只要发生ajax时给c++ 当ajax请求success或者error时,c--; 对加载的按钮添加个事件 监听 c 如果c得值没变化 则隐藏按钮 如果变化了则显示按钮 机不机智 给页面上所有的 ajax都要加哦 可简化 只要发上 ajax请求 就会出现加载的效果啦 简化方法 阅读全文
posted @ 2018-01-08 17:00 一切如旧 阅读(776) 评论(0) 推荐(0)
摘要: var arr=[]; 循环遍历字符串 判断是否大写 大写时 加下划线 push到数组中 "helloWorld".split("").forEach((ele)=>{if(/[A-Z]+/.test(ele)){arr.push("_"+ele)}else{arr.push(ele)} }) ar 阅读全文
posted @ 2018-07-16 15:11 一切如旧 阅读(466) 评论(0) 推荐(0)
摘要: 隐藏浏览器自动添加账号密码的屎黄色背景 input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-transi 阅读全文
posted @ 2018-07-09 17:29 一切如旧 阅读(347) 评论(0) 推荐(0)
摘要: dede中添加新的内容模型图片时,图片所保存的字段含有{dede:img}等多余信息,可以给extend.func.php添加: function clearimgurl($img,$ftype=1){ if($img <> ''){ $dtp = new DedeTagParse(); $dtp- 阅读全文
posted @ 2017-09-06 17:20 一切如旧 阅读(189) 评论(0) 推荐(0)
摘要: function became(e,b) { //e--块级元素的class或id,b--所需要执行的动画class; var divTop = $(e).offset().top; var bodyScroll= $("body").scrollTop(); var winHeight = $(w 阅读全文
posted @ 2017-04-28 12:17 一切如旧 阅读(438) 评论(0) 推荐(0)
摘要: background:url() fixed .... 可以实现页面向下滚动时背景图片 保持位置不变 感觉好像背景在随鼠标滚动而滚动一样 阅读全文
posted @ 2017-04-28 11:44 一切如旧 阅读(78) 评论(0) 推荐(0)