Signed-off-by: lemon147147 <12431933+lemon147147@user.noreply.gitee.com>
This commit is contained in:
lemon147147 2025-10-12 14:11:32 +00:00 committed by Gitee
parent 901ac70c58
commit 89a57650ba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 18 additions and 0 deletions

18
test.html Normal file
View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>页面标题</title>
</head>
<body>
<div id="Adiv" class="A">A---拖拽的元素</div><div id="Bdiv" class="B">B---A被拖进的元素</div>
<p id="lsq">try this button</p>
<script>
function myFunction(){
document.getElementById("lsq").innerHTML="Hello world!";
}
</script>
<button type="button" onclick="myFunction()">点我试试!!!</button>
</body>
</html>