摘要:
var reader = new FileReader(); reader.onload = function(readerEvent) { var image = new Image(); image.src = readerEvent.target.result; image.onload = 阅读全文
摘要:
document.body.addEventListener("focusout", () => { setTimeout(() => { const scrollHeight = document.documentElement.scrollTop || document.body.scrollT 阅读全文
摘要:
上面配置小程序启动页面是 pages/index/index。 上面配置小程序启动页面是 pages/home/index。 配置pages的第一个就是首页 阅读全文
摘要:
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... 阅读全文
摘要:
导出数据库 导入数据库 1.登录数据库 2.创建数据库 3.导入数据 以上出自https://blog.csdn.net/u012318074/article/details/76695985/ 导出数据库表 mysqldump -u用户名 -p密码 数据库名 表名 --where="筛选条件" > 阅读全文
摘要:
button为覆盖的样式 阅读全文
摘要:
html 1、前台 2、后台 阅读全文
摘要:
//设置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="+... 阅读全文
摘要:
1、js 2、css 阅读全文
摘要:
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("... 阅读全文