uniapp中input的disabled属性:
小程序中兼容性好;
在H5中兼容性差;
在H5中使用uniapp的input的disabled属性,属性值只能是true或false,如果为0,'' "都会为true;
html
<input class="input"
@input.stop="specifiName($event,item.field)"
placeholder='请输入'
type="text"
:disabled="(userInfo.mobile && formInfo.is_register && item.type == 6)
? true : false" v-model="item.values"/>