【问题标题】:How to display value on based kendo template?如何在基于剑道的模板上显示价值?
【发布时间】:2017-01-02 06:12:50
【问题描述】:

这是我的代码。

<span ng-show="#: Reading #">HI</span>&nbsp;<span>#: UOM #</span>

我的期望是当“阅读”数据不为空时显示消息“HI”。但实际上它只显示整数数据而不是字母数据。但我需要同时显示数字和字母数据。请帮帮我。

【问题讨论】:

    标签: angularjs kendo-ui kendo-template


    【解决方案1】:

    尝试使用 Boolean() 函数,如下所示:

    <span ng-show="#: Boolean(Reading) #">HI</span>&nbsp;<span>#: UOM #</span>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多