1 <inpu :readonly="status ? false : 'readonly'"> status 为 false时添加 readonly 属性,只读,false不要加引号! 转载于:https://www.cnblogs.com/veritas-sj/p/9400131.html