<footer class="footer">
<span class="tode-count">合计:<strong>{{list.length}}</strong></span>
<button @click="clear" class="clear-completed">
清空任务
</button>
</footer>
clear(){
this.list={}
}
v-show=“list.length>0”用于没有内容是,隐藏