摘要: git remote add origin 地址 例如:git@gitee git pull origin master 下拉 git add . git commit -m “中文引号” git push origin master 阅读全文
posted @ 2021-09-27 11:26 想学前端的小李 阅读(106) 评论(0) 推荐(0)
摘要: 先安装 npm i -D @types/node 在tsconfig.json配置中 添加 { "compilerOptions": { "types": ["node"] }, } 阅读全文
posted @ 2021-08-21 10:46 想学前端的小李 阅读(2956) 评论(0) 推荐(0)
摘要: 踩坑 用replaceall进行字符替换时发布至服务器发现replaceall报错不是一个方法 这里可以用replace加正则来解决 replace(/查询的内容/g,"修改的内容") 阅读全文
posted @ 2021-08-03 15:46 想学前端的小李 阅读(399) 评论(0) 推荐(0)
摘要: const Sequelize = require('sequelize'); const Op = Sequelize.Op; //在where查询条件中 where:{ name:{ [Op.like]:'%'+req.query.name+'%' } } [Op.and]: {a: 5} // 阅读全文
posted @ 2021-08-02 16:10 想学前端的小李 阅读(612) 评论(0) 推荐(0)
摘要: npm config set registry http://registry.npm.taobao.org 查询当前镜像地址 npm config get registry 阅读全文
posted @ 2021-07-25 18:10 想学前端的小李 阅读(37) 评论(0) 推荐(0)
摘要: npm安装 npm install lib-flexible --save npm install postcss-px2rem-exclude --save-dev 复制代码 在main.js中引入lib-flexible import "lib-flexible/flexible.js"; vu 阅读全文
posted @ 2021-07-24 18:03 想学前端的小李 阅读(673) 评论(0) 推荐(0)
摘要: formatDate(ts) { var now = new Date(ts); var year = now.getFullYear(); var month = ((now.getMonth() + 1) < 10) ? ('0' + (now.getMonth() + 1)) : (now.g 阅读全文
posted @ 2021-07-20 15:32 想学前端的小李 阅读(443) 评论(0) 推荐(0)
摘要: 用vue打包后,用Nginx代理后发现刷新总是会报404 根据网上的方法将路由模式由history改成hash即可 下面是区别 原文章 https://www.jianshu.com/p/13415101a8f1 hash模式 vue-router默认的是hash模式. hash模式,是指url尾巴 阅读全文
posted @ 2021-07-20 14:58 想学前端的小李 阅读(510) 评论(0) 推荐(0)
摘要: 每次使用宝塔打开端口,发现总访问不了, 后来去安全组规则发现端口并没有打开, 所以打开新端口先用阿里的安全规则组 在去宝塔页面放行 阅读全文
posted @ 2021-07-20 14:52 想学前端的小李 阅读(82) 评论(0) 推荐(0)
摘要: 正常情况下无法识别nodejs 点开file-》setting -》language-》JavaScript-》libraries 选择node 下载安装 ok node模块被识别 阅读全文
posted @ 2021-07-01 11:14 想学前端的小李 阅读(124) 评论(0) 推荐(0)