We are given a personal information string S, which may represent either an email address or a phone number. We would like to mask this personal information according to the following rules: 1. Email address: We define a name to be a string of length
elementui简单的form校验这里就不介绍了,这里主要记录下如何通过后台进行指定字段的异步后台校验. 1.导入axios <script src="https://unpkg.com/axios/dist/axios.min.js"> //为了保证引用速度,可以把axios的js文件copy到项目文件中 2.注意校验方法的位置 var vue = new Vue({ el: '.background', data () { var validatePhone = (r