<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<button onclick="window.alert('今天过后各位又要放假了')">alert()</button>
<button onclick="window.confirm('假期虽好,但还是要敲代码')">confirm()</button>
<button onclick="window.prompt('请输入你的假期欲望')">prompt()</button>
</body>
<script>
//alert(this);
</script>
</html>点击 "运行实例" 按钮查看在线实例
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号