qfedu-web/www/js1.html

29 lines
717 B
HTML
Raw Permalink Normal View History

2023-09-18 11:21:50 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="flykhan" />
<meta name="keywords" content="c c++ 物联网" />
<title>JavaScript脚本开发</title>
<style>
span{
/* 用户双击时不选中文本 */
user-select: none;
}
</style>
</head>
<body>
<button onclick="alert('点我干啥')">点我试一下</button>
<br />
<div>
<script>
// document 是DOM的对象操作当前页面标签元素的对象
document.write("<h3>js脚本生成的</h3>");
</script>
</div>
<button ondblclick="check()">双击我试试</button>
<script src="js/my.js"></script>
</body>
</html>