How does vue bind a set of attributes to a tag?

how do you define the following attributes if you want to add the following set of attributes: {colspan:"3",rowspan:"5",width:"56",.,} to the tag of td? Can you bind a set of properties in a way similar to: style binding style? : attr=? Is there such a usage?

May.10,2021

none, write one by one

or use the render function


var obj = {colspan:'3',rowspan:'5',width:'56',...,}

<td {...obj}/>

v-bind can accept an object.

<comp v-bind="{colspan:'3',rowspan:'5',width:'56'}">

the above is equivalent to:

<comp :colspan="3" :rowspan="5" :width="56">
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-1b3eb56-2bbb1.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-1b3eb56-2bbb1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?