zoukankan      html  css  js  c++  java
  • 判断字符串的首字母 ---------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'
                                            }

  • 相关阅读:
    springmvc注意点
    MySQL修改约束
    MySQL事务(脏读、不可重复读、幻读)
    浅谈Python-IO多路复用(select、poll、epoll模式)
    浅析python-socket编程
    浅析python迭代器及生成器函数
    并发、并行、同步、异步、阻塞、非阻塞概念整理
    HTTP请求响应的过程
    浅析TCP三次握手及四次挥手
    浅谈python闭包及装饰器
  • 原文地址:https://www.cnblogs.com/renpei/p/5534739.html
Copyright © 2011-2022 走看看