Update TrafficLight.marko

This commit is contained in:
Jeffrey Chen
2024-05-17 17:48:47 +08:00
committed by GitHub
parent 9be5afde29
commit 4355dd5ac1

View File

@@ -8,7 +8,7 @@ static const TRAFFIC_LIGHTS = ["红灯", "黄灯", "绿灯"];
<p>现在亮着的是: ${light}</p>
<p>
你应该
<if=light === "red">停下</if>
<else-if=light === "orange">慢行</else-if>
<if=light === "红灯">停下</if>
<else-if=light === "黄灯">慢行</else-if>
<else>赶紧走</else>
</p>