html界面添加判断

  toolbar: [



                      @if (Model.flag == 1 || Model.flag == 2)
                         {


                                 @:{
                                 @:    text: '添加品番 ',
                                 @:    iconCls: 'icon-add',
                                 @:     handler: function () {  ShowDPPRTNSearchDlg(); }
                                 @:  }
                           }
]

  

原文地址:https://www.cnblogs.com/lhlong/p/6869010.html