10 2020 档案
摘要:正则表达式梳理 ^ 开始 $ 结束 邮箱(限制格式) var a2 = /^[0-9]{9}@[a-z]{2}\.[a-z]{3}$/a2.test('844271163@qq.com') 手机号(11位数字) var a3 = /^[0-9]{11}$/a3.test('13266556733')
阅读全文
摘要:传送门:https://www.cnblogs.com/soyxiaobi/p/9846057.html
阅读全文
摘要:多级组件通信,用vuex太重,props太麻烦。 vue 2.4 版本提供了另一种方法,使用 v-bind=”$attrs”, 将父组件中不被认为 props特性绑定的属性传入子组件中,通常配合 interitAttrs 选项一起使用。 <top> <center> <bottom> </botto
阅读全文
摘要:在main.ts 中添加Vue.component('sayHello',{ render(h){ return h('p',{ style:{ color:'red' } },`早上好`)//格式是`${this.userName}` }, data(){ return{ userName:'小明
阅读全文