场景: input标签的readonly属性,在满足条件时存在,否则不存在
input
<input type="text" readonly> 和 <input type="text">两种形式切换
<input type="text" readonly>
<input type="text">
<input type="text" readonly="条件?true:false">
通过true/false就可以控制属性存在与否
true/false