摘要: var reader = new FileReader(); reader.onload = function(readerEvent) { var image = new Image(); image.src = readerEvent.target.result; image.onload = 阅读全文
posted @ 2020-03-25 11:19 JJRains 阅读(455) 评论(0) 推荐(0) 编辑
摘要: document.body.addEventListener("focusout", () => { setTimeout(() => { const scrollHeight = document.documentElement.scrollTop || document.body.scrollT 阅读全文
posted @ 2020-02-21 10:58 JJRains 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 上面配置小程序启动页面是 pages/index/index。 上面配置小程序启动页面是 pages/home/index。 配置pages的第一个就是首页 阅读全文
posted @ 2019-10-28 23:20 JJRains 阅读(363) 评论(0) 推荐(0) 编辑
摘要: function getParams() { let url = location.search let params={} if (url.indexOf("?") != -1) { let str = url.substr(1) strs = str.split("&") for(var i = 0; i < str... 阅读全文
posted @ 2018-10-14 21:39 JJRains 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 导出数据库 导入数据库 1.登录数据库 2.创建数据库 3.导入数据 以上出自https://blog.csdn.net/u012318074/article/details/76695985/ 导出数据库表 mysqldump -u用户名 -p密码 数据库名 表名 --where="筛选条件" > 阅读全文
posted @ 2018-09-10 21:23 JJRains 阅读(211) 评论(0) 推荐(0) 编辑
摘要: button为覆盖的样式 阅读全文
posted @ 2018-09-06 16:39 JJRains 阅读(9576) 评论(0) 推荐(1) 编辑
摘要: html 1、前台 2、后台 阅读全文
posted @ 2018-09-01 19:37 JJRains 阅读(204) 评论(0) 推荐(0) 编辑
摘要: //设置cookie: cookie名,cookie值,天数 const setCookie = (name,value,day=7)=>{ let date = new Date() date.setTime(date.getTime()+(day*24*60*60*1000)) document.cookie = name+"="+value+";expires="+... 阅读全文
posted @ 2018-09-01 19:31 JJRains 阅读(1661) 评论(0) 推荐(0) 编辑
摘要: 1、js 2、css 阅读全文
posted @ 2018-09-01 19:28 JJRains 阅读(230) 评论(0) 推荐(0) 编辑
摘要: console.log(encodeURI("%")) //%25 console.log(encodeURIComponent("%")) // %25 console.log(decodeURIComponent("https://www.mirai.site?id%3d1")) // https://www.mirai.site?id=1 console.log(decodeURI("... 阅读全文
posted @ 2018-09-01 18:53 JJRains 阅读(779) 评论(0) 推荐(0) 编辑