javascript - simply: if Var is false-ish then “”, else enclose Var with text

前端 未结 0 310
时光取名叫无心
时光取名叫无心 2021-01-21 11:42

I am writing es templates. I want to make the codes as simple as possibles and at best avoid using (function(){return XXX})()

When a list has nothing, prints nothing, Oth

相关标签:
回答
  • 消灭零回复
提交回复
热议问题