mirror of
https://github.com/lainbo/component-party.git
synced 2026-04-05 13:09:03 +08:00
Update TrafficLight.marko
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user