temp = 0 str = 'ACABACGTT' str.replace(/(A|C|G|T)+/g,function(w){     if(temp<w.length){temp = w.length}     return ''; }) console.log(temp) 类似这样pass了
点赞 1

相关推荐

牛客网
牛客企业服务