摘要: 1,子组件 TodoItem.vue : <template> <div class="todo-item" :class="{'is-complete':todo.completed}"> <p> <input type="checkbox" @change="markComplete"> {{t 阅读全文
posted @ 2019-10-31 14:04 武卡卡 阅读(2211) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="todo-item" :class="{'is-complete':todo.completed}"> <p> <input type="checkbox" @change="markComplete"> {{todo.title}} </p> </di 阅读全文
posted @ 2019-10-31 13:45 武卡卡 阅读(195) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <div v-for="todo in a" :key="todo.id"> {{todo}} </div> </div> </template> <script> export default { name:'todos', data(){ return{ a:t 阅读全文
posted @ 2019-10-31 13:04 武卡卡 阅读(5291) 评论(0) 推荐(1) 编辑
摘要: <html><body> <script type="text/javascript"> var str="0123456789!" document.write(str.substring(3,7)) //输出 3456 </script> </body></html> 阅读全文
posted @ 2019-10-31 10:50 武卡卡 阅读(3064) 评论(0) 推荐(1) 编辑