💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>3-1Vue实例</title> <script src="vue.js"></script> </head> <body> <div id="root"> <!-- <div v-on:click="handleClick">--> <div @click="handleClick"> {{message}} </div> <item></item> </div> <script> Vue.component('item',{ template:'<div>hello item</div>' }) var vm=new Vue({ el:'#root', data:{ message:'hello world' }, methods:{ handleClick(){ alert('hello') } } }); </script> </body> </html> ~~~