上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: /** * 存储sessionStorage */const setStore = (name, content) => { window.sessionStorage.setItem(name, content);}/** * 获取localStorage */ const getStore = 阅读全文
posted @ 2019-06-21 15:42 青春无敌小宇宙 阅读(175) 评论(0) 推荐(0) 编辑
摘要: html5 中的 web Storage 包括了两种存储方式:sessionStorage 和 localStorage。 sessionStorage 用于本地存储一个会话(session)中的数据,这些数据只有在同一个会话中的页面才能访问,会话结束后数据也随之销毁。 localStorage 用 阅读全文
posted @ 2019-06-19 15:24 青春无敌小宇宙 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1、头部状态栏高度:54px 阅读全文
posted @ 2019-06-18 18:45 青春无敌小宇宙 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 安装: npm i @vue/cli -g 搭建项目: vue create vue-test 按需加载element-ui 1、npm i element-ui -S npm install babel-plugin-component -D 2、babel.config.js 文件中设置 mod 阅读全文
posted @ 2019-06-11 14:10 青春无敌小宇宙 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Q1: url-loader必须搭载file-loader?Q2: 图片的打包问题,如果直接写在img标签里用src引用图片,该如何打包?Q3: 如何根据不同的页面html模板打包与之对应的css/js文件? 工具——webpack 三大框架:vue 前端react 程序 angular 现代开发模 阅读全文
posted @ 2019-05-27 22:53 青春无敌小宇宙 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 事件修饰符 stop 禁止冒泡once 单次事件prevent 阻止默认事件native 原生事件(组件)keycode|name 筛选按键 组合键 : @keydown.ctrl.enter selfcapture @click="fn()"@click.stop="fn()" computed— 阅读全文
posted @ 2019-05-27 22:25 青春无敌小宇宙 阅读(115) 评论(0) 推荐(0) 编辑
摘要: nginx启动和停止 注意不要直接双击nginx.exe,这样会导致修改配置后重启、停止nginx无效,需要手动关闭任务管理器内的所有nginx进程 在nginx.exe目录,打开命令行工具,用命令 启动/关闭/重启nginx start nginx : 启动nginx nginx -s reloa 阅读全文
posted @ 2019-05-24 15:27 青春无敌小宇宙 阅读(124) 评论(0) 推荐(0) 编辑
摘要: npm ERR! code EINTEGRITY 解决方案 npm cache verifynpm cache clean --force 阅读全文
posted @ 2019-05-24 14:41 青春无敌小宇宙 阅读(82) 评论(0) 推荐(0) 编辑
摘要: vue开发笔记 npm 安装包失败 清除npm缓存 npm cache verify npm cache clean --force vue cli 3.0 安装:npm install -g @vue/cli 创建项目:vue create hello-world 或 vue ui 模块别名: i 阅读全文
posted @ 2019-05-14 16:50 青春无敌小宇宙 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1、 安装: npm install -g express npm install -gexpress-generator 生成项目: express -e projectName express项目修改不重启 $ supervisor node bin/www 让supervisor监听模板文件的 阅读全文
posted @ 2017-12-11 11:46 青春无敌小宇宙 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页