<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表白墙</title>
</head>
<body >
<div class="container2" >
<h1>表白墙</h1>
<p>输入后点击提交会将信息显示在表格中</p>
<div class="row">
<span>谁</span><input type="text" class="a">
</div>
<div class="row">
<span>对谁</span><input type="text" class="a">
</div >
<div class="row">
<span>说什么</span><input type="text" class="a">
</div>
<div class="row">
<input type="button" value="提交" id="submit">
</div>
</div>
<script>
let sub=document.querySelector('#submit');
sub.onclick
JavaScript基础案例表白墙
最新推荐文章于 2023-03-23 05:00:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)