07 2021 档案
摘要:vscode保存文件时会自动格式化,下面更改方法: 打开配置文件setting.json 添加: "editor.codeActionsOnSave": { "source.fixAll.eslint": false },
阅读全文
摘要:一直报错:Delete `··` 解决方法: ctrl+shift+p 打开首选项json 添加:"prettier.endOfLine": "crlf", 报错:warning Delete `␍` 解决方法: vscode下方有一个CRLF 点击,在弹出窗口选择LF 重新格式化即可
阅读全文
摘要:vue3项目中,如果不用ts这样使用是没问题的 const { proxy } = getCurrentInstance() 在ts中使用会报错:报错:...类型“ComponentInternalInstance | null” 我们在项目中一般会用到很多getCurrentInstance()方
阅读全文
摘要:// 表单验证 export default { install: function(Vue) { // 空验证 Vue.config.globalProperties.check_null = function(txt) { return txt == '' ? true : /^[ ]+$/g.
阅读全文