vue 我组件引入的正确 但是总是会报For recursive components, make sure to provide the "name" option. 重启一遍项目就正常了 再次进入页面就会报这个错
应该是命名的时是驼峰命名 调用的时候依然是驼峰式调用 应该是: 命名MyComponent 调用 my-component
Vue项目报错: Component name “xxx“ should always be multi-word vue/multi-word-component-names
在配置完 ESlint 后,要求代码格式规范的同时,也规定了组件的名称格式,要写成 “XXXName”的格式,不能是单个单词。
所以除了改名,另一种解决方法是在 vue.config.js 文件中加一行
lintOnSave: false
git 提交代码提示 Failed to connect to github.com port 443: Timed out
这个是连接github超时了,代理出现了问题 执行命令
git config --global --unset http.proxy
git config --global --unset https.proxy
然后在执行 git push 就成功了
Git提交代码报 OpenSSL SSL_read: Connection was reset, errno 10054
百度了一个方法执行的指令太多了 你们可以试下这个 换了一个git config --global http.sslVerify "false" 执行完执行git push...又报Failed to connect to github.com port 443: Timed out 接着执行git config --global --unset http.proxy git config --global --unset https.proxy就可以了
fatal: Authentication failed for解决方法
push遇到在输入密码输错后,会报错fatal: Authentication failed for
git config --system --unset credential.helper
之后你在push就会提示输入名称和密码
免输入用户密码方法:
git config --global credential.helper store
之后,会在你本地生成一个弹框,用于记录你的账号和密码。
再操作一次git pull(clone 或 push)操作后,它会提示你输入账号密码,这一次输入成功后,就不需要再次输入密码了。
uni-app 去掉button默认的边框线
button:after {
border: none;
}
字符串的拼接(转义字符)
str = "<div class='div' onclick=\'btn(\""+id+"\")\'>点击</div>"
上传图片判断图片宽高
var img = new Image();
var url = window.URL || window.webkitURL;
img.src = url.createObjectURL(item);//预览加载
img.onload = function(){
if(img.width < 100 || img.height < 100) {
return false
}
}