我正在通过jade传递service_type
。试图使用service_type = 'gas'
进行编译。
我尝试过:
- if(#{service_type}=='gas')
p gas
我也尝试过以下方法:
- if('#{service_type}'=='gas')
p gas
但都不起作用...我该如何检查两个字符串是否相等?
我正在通过jade传递service_type
。试图使用service_type = 'gas'
进行编译。
我尝试过:
- if(#{service_type}=='gas')
p gas
- if('#{service_type}'=='gas')
p gas
但都不起作用...我该如何检查两个字符串是否相等?