企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
>[danger] v-bind 绑定属性 [https://cn.vuejs.org/v2/api/#v-bind](https://cn.vuejs.org/v2/api/#v-bind) >[danger] 示例 ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="site"> <p v-bind:id="num"></p> <p v-bind:class="{act:isActive}"></p> <p v-bind:class="[t1, t2]"></p> </div> </body> <script> var app = new Vue({ el: "#site", data: { num: 'title', show: false,//true false isActive: false,// true false t1: 'abc', t2: '', } }) console.log(app) </script> </html> ```