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