vue中如何動態添加readonly屬性

1 <inpu :readonly="status ? false : 'readonly'">
status 爲 false時添加 readonly 屬性,只讀,false不要加引號!
相關文章
相關標籤/搜索