The content published by the Dilys.Lyu does not guarantee absolute correctness, and the risks associated with using the content of this site have nothing to do with this site. If there is any infringement in this website, please contact the author and delete it.
1. 项目目录结构和配置项不同 vue-cli2.0与3.0在目录结构方面, 移除了配置文件目录config,多了.env.production、.
src/utils/dateUtils.js 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import moment from 'moment' /** * 表格时间格式化 * defaultstartValue defaultendValue 可为空 * startValue endValue 不可为空 * */ export function dilysData(format, defStartValue ,defEndValue ,start, end) { console.log(format) console.log(defStartValue) console.log(defEndValue) console.log(start) console.log(end) return { dateFormat: format, defaultstartValue: moment(defStartValue,
一、axios的封装 axios的封装和api接口的统一管理,其实主要目的就是简化代码和利于后期的更新维护。 在vue项目中,和后台交互获取数据
Nginx 的配置系统 主配置文件 /usr/local/nginx/conf/nginx.conf 辅助配置文件 /usr/local/nginx/conf/vhost 由于除主配置文件 nginx.conf 以外的文件都是在某些情况下才使用的,而只有主配置文件是在任何情况下都被使用的。 示例配
将需要保存在vuex中的数据,同时保存在localStorage,并在store.js中写入一下代码: 1 2 3 for (var item in state){ localStorage.getItem(item)?state[item]=JSON.parse(localStorage.getItem(item)):false; }
1.linux环境下: $ PORT=1234 node app.js 使用该命令每次都需要重新设置,如果想设置一次永dao久生效,使用下面的命令。 export PORT=1234 node app.js 2.windows下面按照
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start Create a new post 1 $ hexo new "My New Post" More info: Writing
Run server 1 $ hexo server More info: Server
Generate static files 1 $ hexo generate More info: Generating