摘要: 安装 官方网站:https://nginx.org/en/download.html 启动 两种方法: 1) 直接双击该目录下的"nginx.exe",即可启动nginx服务器; 2) 命令行进入该文件夹,执行start nginx命令,也会直接启动nginx服务器。 nginx需要在英文目录下 默 阅读全文
posted @ 2022-10-31 15:33 默永 阅读(341) 评论(0) 推荐(0) 编辑
摘要: function checkagent(ua) { let isWindowsPhone = /(?:Windows Phone)/.test(ua), isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone, isAndroid = /(?:A 阅读全文
posted @ 2022-10-31 15:32 默永 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 废话不多说直接上代码 组件 <template> <ul> <li v-for="(item,index) in list " :key="index"> <p>{{item.name}}</p> <treeMenus :list="item.children"></treeMenus> </li> 阅读全文
posted @ 2022-10-31 15:30 默永 阅读(41) 评论(0) 推荐(0) 编辑
摘要: .env.development //部署(文件名) .env.production //生产前(文件名) ${process.env.VUE_APP_UR} //获取值 写一个中间件 在写前后台分离的时候肯定是需要发起各种求情,但是每个请求都要写相同的域名,这时候可以用axios定义一下 impo 阅读全文
posted @ 2022-10-31 15:29 默永 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Sequelize查询条件限制 查询条件限制 const Op = Sequelize.Op [Op.and]: {a: 5} // 且 (a = 5) [Op.or]: [{a: 5}, {a: 6}] // (a = 5 或 a = 6) [Op.gt]: 6, // id > 6 [Op.gt 阅读全文
posted @ 2022-10-31 15:29 默永 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 如何使用js过滤敏感词 在字符串中有敏感字就打几个*号来代替 var s = "夜黑风高夜,在小树林我里个去,你大爷的"; var reg = /我里个去|你大爷的/g; s = s.replace(reg,function(ev){ var str = ""; for(var i=0; i<ev. 阅读全文
posted @ 2022-10-31 15:28 默永 阅读(956) 评论(0) 推荐(0) 编辑
摘要: const debounce = () => { axios.get('/api/blog/administration/spot').then(res => { if (res.data.code == 200) { } else { this.$message.error(res.data.ms 阅读全文
posted @ 2022-10-31 15:27 默永 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 码云官网https://gitee.com/ 注册登录 新建仓库输入名称,其他的自己选吧,然后创建 Git 全局设置: git config --global user.name "默永" //用户名 git config --global user.email "3427141688@qq.com 阅读全文
posted @ 2022-10-31 15:26 默永 阅读(51) 评论(0) 推荐(0) 编辑