功能: 1、动态效果 动态获取数据 2、删除 3、添加 4、统计总数 5、清空
源代码:
<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml"xmlns:>
<head>
<meta charset="UTF-8">
<title>memo</title>
</head>
<body>
<div id="app">
<h1>Memo</h1>
<input type="text" v-model="memo">
<input type="button" v-on:click="showDemo()" value="添加备忘"></input>
<br>
<ul>
<li v-for="value,index in lists"