HTML IF Statement

后端 未结 7 1631
走了就别回头了
走了就别回头了 2021-01-12 06:55

I just wanna know how to do an if-statement in simple HTML. Like the [if IE6] thingy

I\'d like to do something like this

[I         


        
7条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-12 07:26

    The closest thing I can think of is *NgIf or using ternary expressions in your html using angular - however, the assignment of the variables and the logic of that ngif statement would be done in javascript.

提交回复
热议问题