Vue avoid mutating a prop directly since the value will be overwritten
学习Vue,从官方文档开始。看了半天不过瘾,决定实现一个登陆组件。开始代码如下:js代码(v1.js)(function(w){Vue.component('login',{props:['uName','uPwd'],template:''+'用户名'+'密码'+'',computed:{btndisable:function(){return(this.uName||'').length>0&