1、nvm use切换版本出现以下问题:
exit status 5: �ܾ����ʡ�
exit status 1: ���ļ��Ѵ���ʱ�����������ļ���
方案:
1.检查文件路径是否存在中文或者空格
2.将cmd命令提示符用管理员身份运行
2、在elementUI中,select选择框中需要用滚动处理分页可在main.js创建一个自定义指令
Vue.directive('loadmore',{
inserted:function(el,binding){
const select_dom=el.querySelector(".el-select-dropdown .el-select-dropdown__wrap");
select_dom.addEventListener('scroll',function(){
const condition=this.scrollHeight - this.scrollTop <= this.clientHeight;
if(condition){
binding.value()
}
})
}
})
3、超过2行多余字段用...显示
display:-webkit-box;
text-overflow:ellipsis;
overflow:hidden;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
4、离线下载Vsocde插件
1.[vscode插件市场](https://marketplace.visualstudio.com/search?term=ssh&target=VSCode&category=All%20categories&sortBy=Relevance)
2.把下载下来的离线安装包拷贝到 VSCode 的安装目录下的 bin 目录下
3.在 bin 目录下,按下shift + 鼠标右键,点击打开“在此处打开ProwerShell窗口”
4.输入命令 code --install-extension;
示例:code --install-extension xxxxxxxxxxx.vsix
5.出现 successful installed 字样,则表示安装成功
5、vue2中若select或者input框存在赋值不上
1.可以使用$forceUpdate(),可以使用但不推荐
2.采用[vue|this].$set(),赋值