代码如下;
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="./node_modules/jquery/dist/jquery.js"></script> <script src="./node_modules/vue/dist/vue.js"></script> </head> <body> <button @click="changegroup">改变group子组件</button> <groupcomponent :groupmessage="group"></groupcomponent> <todocomponent :todomessage="todolist"></todocomponent> <template id="group_co"> <div @click="groupidclick">{{groupmessage.id}}</div> <div>{{groupmessage.name}}</div> <div>{{tag}}</div> </template> <template id="todo_template"> <ul> <li v-for="todo in todomessage"> <span>ID: {{todo.id}}, </span> <span>Title{{todo.title}}</span> </li> </ul> </template> <script> var groupcomponent = Vue.extend({ template:
付费偷看金额在0.1-10元之间
一周热门 更多>