Have you ever had a headache for reading the messy code written by others? Have you ever worried about viewing the BWindow code? Has it ever left or right to reduce the contradiction between JS volume and JS readability? The best way is to have a program for code formatting and code compression. Today, it is written in pure JS, and of course it is open source. due to the rush of writing, there are still some minor bugs. Please pay attention to updates frequently!
</P> <HTML> <HEAD> <TITLE> Format </TITLE> <META content = "MSHTML 6.00.2800.1528" name = GENERATOR> <META content = "" name = Author> <META content = "" name = Keywords> <META content = "" name = Description> </HEAD> <BODY> <TEXTAREA id = code rows = 12 cols = 100>/* This is a class */</P> <P> function xx (num, str) {// specifies var a = num; this. aa = a; this. bb = function () {alert (str);} this. cc = function () {for (var I = 0; I <10; I ++) {document. title = I ;}}; </P> <P> xx. prototype. dd = function () {alert ("d kd") ;}</P> <P> var a = new xx (100, "hello "), B = new xx (0, "ttyp"); if (1> 2) {alert ();} else {alert ("hell ");} </P> <P>. bb (); B. dd (); alert (. aa); </P> <P> Format Compression Classic Microsoft
</Textarea>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]