Home >Web Front-end >JS Tutorial >Simple JS code compressor_javascript skills

Simple JS code compressor_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 19:25:231365browse

1.

Copy code The code is as follows:





Test code: < ;br/>



Step 1:


Step 2:


Step 3:


Step 4:




2.
Copy code The code is as follows:
Format









/*
这个是一个类
*/


function    xx   (num,str){//说明
var a = num;this.aa = a;
this.bb = function(){alert(str);}
this.cc = function(){for(var i=0;i<10;i ){document.title=i;}}};

xx.prototype.dd= function(){alert("d  d        kd");}

var a = new xx(100,"hello"),b=new xx(0,"ttyp");
if(1>2)  {   alert();
}
else {
alert(" hell ");
}

a.bb();
b.dd();
alert(a.aa);

 


   格式化
   压缩


   经典
   微软







Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn