摘要:
1,子组件 TodoItem.vue : <template> <div class="todo-item" :class="{'is-complete':todo.completed}"> <p> <input type="checkbox" @change="markComplete"> {{t 阅读全文
摘要:
<template> <div class="todo-item" :class="{'is-complete':todo.completed}"> <p> <input type="checkbox" @change="markComplete"> {{todo.title}} </p> </di 阅读全文
摘要:
<template> <div> <div v-for="todo in a" :key="todo.id"> {{todo}} </div> </div> </template> <script> export default { name:'todos', data(){ return{ a:t 阅读全文
摘要:
<html><body> <script type="text/javascript"> var str="0123456789!" document.write(str.substring(3,7)) //输出 3456 </script> </body></html> 阅读全文