xsnow
机遇总是留给有准备的人
随笔 - 42,  文章 - 0,  评论 - 0,  阅读 - 75828

随笔分类 -  问题整理以及解决

1 2 下一页
记录一些工作中遇到的问题的解决方法
Vue.extend创建组件获取不到store问题解决
摘要:添加store配置即可 阅读全文
posted @ 2021-11-18 14:57 xsnow 阅读(911) 评论(0) 推荐(0) 编辑
element-ui upload组件支持multipart/form-data格式
摘要:设置with-credentials属性即可支持 <template> <el-upload ref="upload" drag :action="action" with-credentials :auto-upload="false" :on-success="handleSuccess" :o 阅读全文
posted @ 2021-11-15 18:30 xsnow 阅读(974) 评论(0) 推荐(0) 编辑
npm报错code ELIFECYCLE
摘要:一、报错如下图所示 二、解决 第一步:清理缓存 npm cache clean –force 第二步:删除node_modules rm -rf node_modules 第三步:删除package-lock.json(重新安装依赖时会生成新的package-lock.json文件) rm pack 阅读全文
posted @ 2021-09-29 19:33 xsnow 阅读(906) 评论(0) 推荐(0) 编辑
npm 依赖下载报错 Hostname/IP does not match certificate‘s 相关 解决方案
摘要:npm set strict-ssl false npm config set registry http://registry.npmjs.org/ 参考链接 阅读全文
posted @ 2021-09-29 09:19 xsnow 阅读(418) 评论(0) 推荐(0) 编辑
获取电脑磁盘序列号
摘要:最近遇到获取电脑磁盘序列号的需求,systeminformation包能实现,但是除了获取磁盘序列号,还获取了其他信息,耗时太久,根据systeminformation源码简化了获取信息,只获取了磁盘序列号,减少了多余耗时。 阅读全文
posted @ 2021-01-22 17:46 xsnow 阅读(1065) 评论(0) 推荐(0) 编辑
npm安装依赖问题整理
摘要:1、使用cnpm安装依赖可能有诡异的bug,可以使用如下替代方案: npm install --registry=https://registry.npm.taobao.org 2、网络问题(如 ELIFECYCLE、EAI_AGAIN、ECONNRESET 和 ETIMEDOUT 等错误) // 阅读全文
posted @ 2020-08-21 13:39 xsnow 阅读(892) 评论(0) 推荐(0) 编辑
input标签focus状态时...样式失效问题
摘要:input标签focus状态时...样式失效问题 阅读全文
posted @ 2020-01-16 15:49 xsnow 阅读(2609) 评论(0) 推荐(0) 编辑
a标签回车事件自动调用click事件解决方法
摘要:a标签的href="javascript:;"会导致敲击回车键时自动调用click事件 阅读全文
posted @ 2020-01-16 15:34 xsnow 阅读(1049) 评论(0) 推荐(0) 编辑
vue的input事件监听中文输入问题
摘要:在vue项目中遇到使用input事件不能监听中文输入问题,现整理解决办法如下。 阅读全文
posted @ 2019-11-11 15:40 xsnow 阅读(4709) 评论(0) 推荐(0) 编辑
css word-wrap与word-break区别
摘要:span标签中数字与长单词不能自动换行,超出长度出现横向滚动条。 阅读全文
posted @ 2019-11-11 15:11 xsnow 阅读(333) 评论(0) 推荐(0) 编辑
input输入框光标位置问题
摘要:最近在做需求的时候,做了个下拉列表模糊搜索只有一项时,自动选中的功能,在mac谷歌浏览器中自动选中后光标定位在最后(正常),但在window谷歌浏览器中自动选中后光标定位在输入处(异常)。现记录一下解决办法。 阅读全文
posted @ 2019-11-08 11:16 xsnow 阅读(2964) 评论(0) 推荐(0) 编辑
mac电脑重启nginx报错nginx: [error] invalid PID number "" in "/usr/local/var/run/nginx.pid"
摘要:最近重启mac电脑上安装的nginx报错了,现将错误解决办法整理一下 阅读全文
posted @ 2019-09-27 17:23 xsnow 阅读(8345) 评论(0) 推荐(0) 编辑
管理github/gitlab生成多个ssh key
摘要:由于公司代码管理放在了gitlab上,而个人代码放在github上,因此需要生成多个ssh key 指定密钥名称 ssh-keygen -t rsa -C 'youremail@yourcompany.com' -f ~/.ssh/gitlab_id_rsa // 测试连接gitlab报错 ssh 阅读全文
posted @ 2019-07-17 10:02 xsnow 阅读(262) 评论(0) 推荐(0) 编辑
nginx问题整理
摘要:1、在location中设置root失效问题 在location中设置root时,需要在每个location中设置root,否则报错404 2、allow,deny作用文件夹问题 情形1: 能访问root对应文件夹下内容,不能访问root对应文件夹中包含的文件夹下内容 server { root X 阅读全文
posted @ 2019-06-18 17:58 xsnow 阅读(138) 评论(0) 推荐(0) 编辑
nginx只允许内网ip访问,禁止外网访问
摘要:#配置清单 location / { deny 192.168.1.1; allow 127.0.0.0/24; allow 192.168.0.0/16; allow 10.10.0.0/16; deny all; root /opt/hx_cmssearch2.5; index index.js 阅读全文
posted @ 2019-06-12 19:29 xsnow 阅读(6279) 评论(0) 推荐(0) 编辑
ngin拦截一个指定的html页面以及常用命令
摘要:一、nginx拦截一个指定的html页面 server { ... # 拦截指定页面,~* 是不区分大小写,~ 区分大小写,拦截后重写地址,参数会一起传入重写地址,重写地址可以是另一个页面,也可以是服务接口地址 if ($request_uri ~* "tyg.html") { # rewrite 阅读全文
posted @ 2019-06-10 19:50 xsnow 阅读(2249) 评论(0) 推荐(0) 编辑
npm与cnpm的install无反应
摘要:问题描述 1、npm -v检查版本正常,npm install安装依赖提示超时 2、cnpm -v检查版本正常,cnpm install安装依赖无反应(输入命令后没有任何提示,一直卡在那) 解决(参考网址:https://segmentfault.com/q/1010000012575385/rev 阅读全文
posted @ 2019-04-18 10:33 xsnow 阅读(1003) 评论(0) 推荐(0) 编辑
解决overflow: hidden在移动端失效问题
摘要:最近在做移动端页面时,出现弹窗时,在手机端滑动页面,页面底部出现空白,现将解决方法整理如下。 阅读全文
posted @ 2019-04-03 18:34 xsnow 阅读(991) 评论(0) 推荐(0) 编辑
sort排序在苹果与安卓端不一致问题
摘要:最新,在使用sort进行排序时,遇到苹果手机与安卓手机排序不一致问题,现将解决方法记录如下。 阅读全文
posted @ 2019-04-03 18:21 xsnow 阅读(747) 评论(0) 推荐(0) 编辑
.gitinore配置失效问题
摘要:.gitinore中配置已提交过的代码文件夹,提交时配置失效 阅读全文
posted @ 2019-03-12 17:13 xsnow 阅读(164) 评论(0) 推荐(0) 编辑

1 2 下一页

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示