简单JS代码压缩器

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

               if(!this.isCompress){
                   if(!for_open){
                       if(i<word_index&&(codeArr[i+1]!="r"&&codeArr[i+1]!="n")){                            
                           htmlTxt[htmlTxt.length] = codeArr[i] + "n" + this.getIdent();
                       }else{
                           htmlTxt[htmlTxt.length] = codeArr[i] + this.getIdent();
                       }
                   }else{
                       htmlTxt[htmlTxt.length] = codeArr[i];                    
                   }
               }else{
                   htmlTxt[htmlTxt.length] = codeArr[i];
               }
           } else if(!slash_slash_comment_opened&&!slash_star_comment_opened && !quote_opened &&codeArr[i]==this._beginBlock){
               for_open    = false;
               if(!this.isCompress){
                   switch(this.style){
                       case 0: