简单JS代码压缩器

2019-06-03 18:43:24于海丽

                   if(!this._deleteComment){
                       htmlTxt[htmlTxt.length] =  this._commentOff;
                   }
                   i = i + this.getSkipLength(this._commentOff);        
               }
           } else {
               //不是在字符串中
               if(!quote_opened){
                   //如果不是在注释重
                   if(!slash_slash_comment_opened && !slash_star_comment_opened){    
                           htmlTxt[htmlTxt.length] = codeArr[i];                        
                   //注释中                            
                   }else{
                       if(!this._deleteComment){
                           htmlTxt[htmlTxt.length] = codeArr[i];
                       }
                   }
               }else{
                           htmlTxt[htmlTxt.length] = codeArr[i];