BootStrap模态框清除历史数据
在做课程设计的时候用到了bootstrap的模态框部分。
-
问题:点击按钮显示出模态框,输入数据。再次点击模态框会出现上次的输入。
-
我的课程设计中使用的地方是:点击按钮出现模态框,输入信息之后的添加操作,为了使每次点击出现的模态框内标签数据都为空。
这里模态框的使用以及关于按钮,都是看的BootStrap中文文档。https://v3.bootcss.com/
- 代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>测试</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css">
</head>
<body>