摘要: 1. 使用 koa-session 给请求添加上token const session = require('koa-session'); const CONFIG = { key: 'koa:sess', /** (string) cookie key (default is koa:sess) 阅读全文
posted @ 2021-12-13 17:27 real_zwj 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-12-13 14:54 real_zwj 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 一、application cache 1、manifest文件 2、application cache的浏览器事件 3、特点:(1)manifest文件有变化才会更新。(2)一次必须更新manifest中的所有文件。(3)下次才会生效。 二、localStorage、sessionStorage 阅读全文
posted @ 2021-12-12 22:52 real_zwj 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 使用方式 1. 在项目下安装nodemon nodemon.json 2. 在 package "dev": "nodemon index.js " 3. 添加监听修改的文件 创建 nodemon.json { "watch": ["app.js","./src/**/*.js"] } 通过以上方式 阅读全文
posted @ 2021-12-08 10:18 real_zwj 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 预览地址 https://emloxe.github.io/xydaily-component/other/jfontsize.html 代码地址 https://github.com/emloxe/xydaily-component/blob/master/other/jfontsize.html 阅读全文
posted @ 2021-12-07 12:06 real_zwj 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 预览地址 https://emloxe.github.io/xydaily-component/other/backtop.html 代码地址 https://github.com/emloxe/xydaily-component/blob/master/other/backtop.html <a 阅读全文
posted @ 2021-12-07 11:21 real_zwj 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1. 样式一 预览地址 https://emloxe.github.io/xydaily-component/link/link1.html 代码地址 https://github.com/emloxe/xydaily-component/blob/master/link/link1.html 阅读全文
posted @ 2021-12-07 10:59 real_zwj 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 关闭 window.close(); 打印 window.print(); 阅读全文
posted @ 2021-12-07 09:35 real_zwj 阅读(45) 评论(0) 推荐(0) 编辑
摘要: html5shiv 是一个针对 IE 浏览器的 HTML5 JavaScript 补丁,目的是让 IE 识别并支持 HTML5 元素。 respond.js简介用于最小/最大宽度的快速和轻量级的polyfill CSS3媒体查询(适用于IE 6-8以及更多)这个脚本的目标是提供一个快速和轻量级的(3 阅读全文
posted @ 2021-12-06 11:57 real_zwj 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 苹果手机h5页面,点击form表单后页面放大,需要手动缩小 <meta content="yes" name="apple-mobile-web-app-capable"> <meta name="viewport" content="width=device-width, initial-scal 阅读全文
posted @ 2021-12-06 11:49 real_zwj 阅读(160) 评论(0) 推荐(0) 编辑