简单JS代码压缩器

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

               slash_slash_comment_opened = false;    
               quote_opened    = false;
               line_num++;
               if(!this.isCompress){
                   htmlTxt[htmlTxt.length] = "rn"+ this.getIdent();    
               }
           //处理function里的参数标记
           } else if (!slash_slash_comment_opened&&!slash_star_comment_opened && !quote_opened &&this.isFunction(codeArr[i])){
               htmlTxt[htmlTxt.length] = codeArr[i]  + " ";
               function_opened = true;
           } else if (!slash_slash_comment_opened&&!slash_star_comment_opened && !quote_opened &&codeArr[i]==this._isFor){
               htmlTxt[htmlTxt.length] = codeArr[i];
               for_open = true;
           } else if (!slash_slash_comment_opened&&!slash_star_comment_opened && !quote_opened &&codeArr[i]=="("){
               bracket_open    = true;
               htmlTxt[htmlTxt.length] = codeArr[i];
           } else if (!slash_slash_comment_opened&&!slash_star_comment_opened && !quote_opened &&codeArr[i]==")"){
               bracket_open    = false;
               htmlTxt[htmlTxt.length] = codeArr[i];
           } else if (!slash_slash_comment_opened&&!slash_star_comment_opened && !quote_opened &&codeArr[i]==this._rowEnd){