2018年5月15日
摘要:
子元素的排列方式(水平或者垂直)(旧)box-orient:horizontal | vertical | inline-axis | block-axis(新)flex-direction:row | row-reverse | column | column-reverse /#########
阅读全文
posted @ 2018-05-15 16:33
流浪小白鼠
阅读(113)
推荐(0)
2016年7月29日
摘要:
//ajax执行批量操作 !function (w) { //ajax构造函数 var ajaxConstructor = function (batchAjax, backCall) { this.run = false; this.isOk = false; this.backCall = backCall ? backCall : null; bat...
阅读全文
posted @ 2016-07-29 17:17
流浪小白鼠
阅读(2348)
推荐(0)
2016年7月13日
摘要:
/*类型检测*/ var isType = function (obj, type) { return Object.prototype.toString.call(obj) === "[object " + type + "]"; } //console.log(isType([],"Array")); //console.log(isT...
阅读全文
posted @ 2016-07-13 10:36
流浪小白鼠
阅读(103)
推荐(0)
摘要:
1 /*定时器*/ 2 var requestAnimationFrame = 3 window.requestAnimationFrame || 4 window.mozRequestAnimationFrame || 5 window.webkitRequestAnimationFrame || 6 window...
阅读全文
posted @ 2016-07-13 10:35
流浪小白鼠
阅读(133)
推荐(0)
2015年12月30日
摘要:
1 //http://www.xaprb.com/blog/2005/12/12/javascript-closures-for-runtime-efficiency/ 2 /* 3 * Copyright (C) 2004 Baron Schwartz 4 * 5 * This...
阅读全文
posted @ 2015-12-30 15:42
流浪小白鼠
阅读(259)
推荐(0)
摘要:
(function($) { var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll']; var toBind = 'onwheel' in document || document.docu...
阅读全文
posted @ 2015-12-30 15:38
流浪小白鼠
阅读(1140)
推荐(0)
摘要:
1 /* 2 * jQuery input event 3 * Author: tangbin 4 * Blog: http://www.planeart.cn 5 * Date: 2011-08-18 15:15 6 */ 7 (function ($) { 8 9 // I...
阅读全文
posted @ 2015-12-30 15:37
流浪小白鼠
阅读(1481)
推荐(0)
2015年12月11日
摘要:
sea.js 正则解析"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|\/\*[\S\s]*?\*\/|\/(?:\\\/|[^\/\r\n])+\/(?=[^\/])|\/\/.*|\.\s*require|(?:^|[^$])\brequire\s*\(\s*(["'])(.+?...
阅读全文
posted @ 2015-12-11 23:00
流浪小白鼠
阅读(100)
推荐(0)
摘要:
sea.js 正则解析"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|\/\*[\S\s]*?\*\/|\/(?:\\\/|[^\/\r\n])+\/(?=[^\/])|\/\/.*|\.\s*require|(?:^|[^$])\brequire\s*\(\s*(["'])(.+?...
阅读全文
posted @ 2015-12-11 23:00
流浪小白鼠
阅读(101)
推荐(0)
2015年7月3日
posted @ 2015-07-03 17:54
流浪小白鼠
阅读(135)
推荐(0)