会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lslhhh
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2021年9月27日
git新建仓库与本地关联
摘要: 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)
2021年8月21日
Cannot find name ‘process‘. Do you need to install type definitions for node?
摘要: 先安装 npm i -D @types/node 在tsconfig.json配置中 添加 { "compilerOptions": { "types": ["node"] }, }
阅读全文
posted @ 2021-08-21 10:46 想学前端的小李
阅读(2956)
评论(0)
推荐(0)
2021年8月3日
打包至服务器replaceall not a function
摘要: 踩坑 用replaceall进行字符替换时发布至服务器发现replaceall报错不是一个方法 这里可以用replace加正则来解决 replace(/查询的内容/g,"修改的内容")
阅读全文
posted @ 2021-08-03 15:46 想学前端的小李
阅读(399)
评论(0)
推荐(0)
2021年8月2日
sequlise模糊查询
摘要: 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)
2021年7月25日
修改npm镜像站
摘要: npm config set registry http://registry.npm.taobao.org 查询当前镜像地址 npm config get registry
阅读全文
posted @ 2021-07-25 18:10 想学前端的小李
阅读(37)
评论(0)
推荐(0)
2021年7月24日
flexable自适应布局
摘要: 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)
2021年7月20日
js处理时间戳
摘要: 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)
打包后项目刷新总404 以及 history和hash两种模式区别
摘要: 用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)
2021年7月1日
webstorm添加nodejs补全
摘要: 正常情况下无法识别nodejs 点开file-》setting -》language-》JavaScript-》libraries 选择node 下载安装 ok node模块被识别
阅读全文
posted @ 2021-07-01 11:14 想学前端的小李
阅读(124)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告