压缩和净化JavaScript、HTML、.NET、 perl 和 PHP等等,提高加载速度。美化或解压缩代码请来这里!
粘贴代码到这里: /* 净化:去掉代码中多余的注释、换行、空格等 */ /* 压缩:将代码压缩为更小体积,便于传输 */ /* 如果有用,请别忘了推荐给你的朋友: */ /* javascript在线美化、净化、压缩、解压:http://awer.cn/t/js */ /* 以下是演示代码 */ $.extend({ includePath: '', include: function (file) { var files = typeof file == "string" ? [file] : file; for (var i = 0; i < files.length; i++) { var name = files[i].replace(/^\s|\s$/g, ""); var att = name.split('.'); var ext = att[att.length - 1].toLowerCase(); var isCSS = ext == "css"; var tag = isCSS ? "link" : "script"; var attr = isCSS ? " type='text/css' rel='stylesheet' " : " language='javascript' type='text/javascript' "; var link = (isCSS ? "href" : "src") + "='" + $.includePath + name + "'"; if ($(tag + "[" + link + "]").length == 0) document.write("<" + tag + attr + link + ">" + tag + ">"); } } });
加载 清除 压缩 保存 解码
Base62编码 收缩变量
ready
© 2012 略存网络 Web制作工具.