JavaScript执行document.write()原有控件消失
<!DOCTYPE html>
<html>
<meta charset="utf8">
<body>
<input type="button" value="点我" onclick="document.write('按钮消失')" style="position: absolute;width: 200px;height: 100px;left: 0;right: 0;top: 0;bottom: 0;;margin: auto;">
</body>
</html>
评论 (0)