精简版(本地存储)
html部分
<div class="app">
<h2>计划清单</h2>
<input class="plan_insert" type="text" placeholder="请输入你的计划" @keyup.enter="addItem" v-model.trim="temp">
<h3>
未完成
<span>({
{
undoList.length}})</span>
</h3>
<div class="list">
<div class="item" v-for="(item,index) in undoList" :key="item.title">
<label>
<input type="checkbox" v-model="item.done">
{
{
item.title}}
</label>
<button @click="removeItem(item)">x</button>
<