JS压缩工具
请将
JS源码
输入下面表单:
输入代码:
// is.js // (c) 2001 Douglas Crockford // 2001 June 3 // The -is- object is used to identify the browser. Every browser edition // identifies itself, but there is no standard way of doing it, and some of // the identification is deceptive. This is because the authors of web // browsers are liars. For example, Microsoft's IE browsers claim to be // Mozilla 4. Netscape 6 claims to be version 5. var is = { ie: navigator.appName == 'Microsoft Internet Explorer', java: navigator.javaEnabled(), ns: navigator.appName == 'Netscape', ua: navigator.userAgent.toLowerCase(), version: parseFloat(navigator.appVersion.substr(21)) || parseFloat(navigator.appVersion), win: navigator.platform == 'Win32' } is.mac = is.ua.indexOf('mac') >= 0; if (is.ua.indexOf('opera') >= 0) { is.ie = is.ns = false; is.opera = true; } if (is.ua.indexOf('gecko') >= 0) { is.ie = is.ns = false; is.gecko = true; }
正在压缩中..
输出代码:
最小压缩
普通压缩
超级压缩
原体积:
新体积:
压缩率:
工具介绍
使用本工具可以在不影响JavaScript运行结果的同时,在线压缩JavaScript代码,减小JavaScript代码体积,加快网页加载速度。