1.编写内容实现留言并加删除键 如下
2.实现删除
实现代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="../jquery.js"></script>
</head>
<body>
<h1>简易留言板</h1>
<input type="text" onblur="val()" onfocus="fval()" /> <button onclick="dianji()">留言</button>
<div>
</div>
</body>
<script>
$(function () {
$("html").keydown(function (event) {
i