zoukankan      html  css  js  c++  java
  • cshtm判断

     @{
                                            var data
    ="";
                                            
    if (at.Type=="H")
                                            {
                                                data 
    = "热销活动";
                                            }
                                            
    else if (at.Type == "B")
                                            {
                                                data 
    = "限时抢购";
                                            }
                                            
    else if (at.Type == "S")
                                            {
                                                data 
    = "当季专题";
                                            }
                                            
    else if (at.Type == "T")
                                            {
                                                data 
    = "动态消息";
                                            }
                                            @data;
                                     }
  • 相关阅读:
    分支管理和自动化部署需求
    swiper 的左右箭头放到外面
    使用Foxmail登录阿里企业邮箱(钉钉邮箱)
    正则表达式 把所有的花引号替换为直引号 把字符串中所有单词的首字母都转换为大写
    react中getDerivedStateFromProps和componentDidUpdate配合使用
    model进阶
    cooke和session
    Django基础四之模板系统
    Django基础三之视图函数
    Django基础二之URL路由系统
  • 原文地址:https://www.cnblogs.com/shizhi57/p/2105521.html
Copyright © 2011-2022 走看看