摘要:
this.$prompt('请输入您的姓名', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', inputValue: '默认值', inputPattern: /^.+$/, inputErrorMessage: '姓名为空' }) 阅读全文
摘要:
1 函数名() { 2 new Promise(resolve => { 3 this.$rest.请求名1().then(res =>{ 4 // 请求成功后改变状态 5 resolve() 6 }) 7 }).then(() => { 8 // 上一个Promise实例状态变化了后才会执行( r 阅读全文