/** * BrowserDetect.browser; 浏览器的名称,例如Firefox,IE * BrowserDetect.version; 浏览器的版本,比如,7、11 * BrowserDetect.OS; 浏览器所宿主的操作系统,比如Windows、Linux */ var BrowserDetect = { ini... Read More
// 用最有效率的方式,算出2乘以8等于几? 2 << 3 // 对两个整数变量的值进行互换(不需要第三方变量) a = a ^ b; b = a ^ b; a = a ^ b; Read More
var Base64 = { _keyStr: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', encode: function(input) { var output = '', chr1, chr2, chr3, enc1, enc2, enc3, en... Read More
'use strict'; /** * 获取CSS */ function getStyle(obj, attr) { return (obj.currentStyle || getComputedStyle(obj, false))[attr]; } /** * JS动画框架 */ function move(obj, json, options) { if (!o... Read More