摘要:
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. 阅读全文