• 判断字符串的首字母 ---------startsWith


    列:

    {
                                                xtype : 'gridcolumn',
                                                dataIndex : 'nrMid3bit',
                                                text : 'Nr.mid',//零件号中间3位
                                                renderer: function(value, metaData, record) {//add renpei 20160527
                                                    var partNum=record.get("partNum");
                                                    if(null != partNum && partNum.length>5){
                                                        if(partNum.startsWith("N") || partNum.startsWith("n")){
                                                            return "N";
                                                        }else{
                                                            value=partNum.substring(3,6);
                                                            return value;
                                                        }
                                                    }else{
                                                        return ;
                                                    }
                                                    
                                                },
                                                stateId:'QpnGridForQpn_033'
                                            }

  • 相关阅读:
    Freemaker:操作集合
    win10:在关闭防火墙下如何屏蔽特定端口
    win10:家庭版开启组策略
    oracle:10g下载地址(转载)
    mybatis:延迟加载时不要在get/set方法上面添加final关键字(原创)
    mybatis:在springboot中的配置
    mybatis:访问静态变量或方法
    maven:手动安装JAR到本地仓库
    datatables日常使用集合
    python 装饰器
  • 原文地址:https://www.cnblogs.com/renpei/p/5534739.html
Copyright © 2020-2023  润新知