• 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;
                                     }
  • 相关阅读:
    Python 学习笔记(七)Python字符串(三)
    Python 学习笔记(七)Python字符串(二)
    Python 学习笔记(六)Python第一个程序
    Python 学习笔记(五)常用函数
    Python 学习笔记(四)数字(二)
    行为型模式之责任链模式
    python_frm组件
    django之models学习总结
    HTTP协议
    事件委托
  • 原文地址:https://www.cnblogs.com/shizhi57/p/2105521.html
Copyright © 2020-2023  润新知