qfedu-web/www/js1.html

29 lines
717 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>