摘要: 更新项目依赖包,删除掉package-lock.json、node_modules,运行npm install,报如上错误信息,查询资料说是没有权限,本人用管理员身份打开powershell,运行npm install,依旧报错。后来查询https://stackoverflow.com/quest 阅读全文
posted @ 2019-04-12 11:53 wxh27 阅读(5961) 评论(0) 推荐(0) 编辑
摘要: 这种错误是因为在scss文件中使用了中文注释,导致转css时出错。 解决办法: 找到ruby安装路径下的engine.rb文件,(我的在这里 E:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sass-3.4.22\lib\sass) 在所有的 require *** 结 阅读全文
posted @ 2018-01-20 20:06 wxh27 阅读(191) 评论(0) 推荐(0) 编辑
摘要: sass(https://www.sass.hk)基于Ruby语言开发而成,因此安装sass前需要安装Ruby。(注:mac下自带Ruby无需在安装Ruby!) 一、安装ruby 注意勾选第二个选项 安装完成后需测试安装有没有成功,cmd中输入 gem -v 出现版本号表示安装成功 二、安装sass 阅读全文
posted @ 2018-01-20 19:58 wxh27 阅读(111) 评论(0) 推荐(0) 编辑
摘要: overflow: hidden; white-space: nowrap; text-overflow: ellipsis; 阅读全文
posted @ 2018-01-17 15:16 wxh27 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Chrome中调试 源码: 构造器 function Dog(){this.tail=true} 构造新实例 var benji= new Dog(); var rusty=new Dog(); 新实例的constructor benji.constructor //ƒ Dog(){this.tai 阅读全文
posted @ 2018-01-12 16:32 wxh27 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.给目标元素加 display:block;text-align:justify; 2.如果最后一行没充满整行,因为text-align:justify,所以字字之间会有间隔,应给目标元素加伪类,添加如上图中的属性 阅读全文
posted @ 2018-01-11 17:33 wxh27 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-11-02 16:39 wxh27 阅读(688) 评论(0) 推荐(0) 编辑
摘要: 单击和双击事件的执行顺序: 单击(click):mousedown,mouseout,click; 双击(dblclick):mousedown,mouseout,click , mousedown,mouseout,click,dblclick; 在双击事件(dblclick),触发的两次单击事件 阅读全文
posted @ 2017-09-26 19:37 wxh27 阅读(1468) 评论(0) 推荐(0) 编辑
摘要: 在nginx.conf文件中 添加如上配置: 在ajax中将原来的 url:http://192.168.1.127:8905/findItem 改成:'http://localhost/findItem' listen :80; #监听host为localhost:80 的客户端请求 server 阅读全文
posted @ 2017-09-12 09:33 wxh27 阅读(199) 评论(0) 推荐(0) 编辑