How does vue.js dynamically add delete attributes to tags?

<el-button type="primary"  disabled></el-button>

ask, for example, the button above, where disabled is used to indicate whether the button is disabled. How do I dynamically add and delete this attribute in the tag?

clipboard.png
clipboard.png

May.14,2021

just write: disabled= "var". When the variable is false, vue automatically deletes this attribute.


.
it accepts a Boolean value


: disabled
.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3aae7-2c22c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3aae7-2c22c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?