JavaScript基础开关灯案例
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>点亮灯泡</title>
</head>
<body>
<script>
function changimage()
{
element=document.getElementById('myimage')
if(element.src.match("bullbon"))
{
element.src="../img/bullboff.gif";
}
else
{
element.src="../img/bullbon.gif";
}
}
</script>
<img id="myimage" src="../img/bullboff.gif"onclick="changimage()" alt="my image gallery">
![在这里插入图片描述](https://img-blog.csdnimg.cn/2020051517193456.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ2MzYyNDI4,size_16,color_FFFFFF,t_70)
<p>太暗了,开一下灯吧!</p>
</body>
</html>
.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference
[2]: https://mermaidjs.github.io/
[3]: https://mermaidjs.github.io/
[4]: http://adrai.github.io/flowchart.js/