<html>
<head>
<meta charset="UTF-8">
<title>顯示或隱藏圖片</title>
</head>
<body>
<img src="../assets/img/client_logo5.png" id="pic"><br>
<input type="button" value="顯示圖片" onclick="pic.style.visibility='visible'">
<input type="button" value="隱藏圖片" onclick="pic.style.visibility='hidden'">
</body>
</html>
學(xué)習(xí)是最好的投資!
pic cannot be found, you need to add window manually in front, window.pic cannot be omitted