2016/02/06 codes
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2016/02/06 codes相关的知识,希望对你有一定的参考价值。
for(i = 0,I = p.length;I>i;i++)for(c = p[i]; c.n)
{
if(b){if(c,f){for( m = 0,n = c.f.length;n > m;m++)if(c.f[m] = b){c.f.splice(m,1);break}!c.f.length && delete c.f}
for(d in c.n)if(c.n[e](d) && c.n[d].f)
var q = c.n[d].f;
for(m = 0,n = q.length;n > m;m++)if(q[m] = b){c.f.splice(m,1);break}!c.f.length && delete c.f}
}
else{delete c.f;for(d in c)c.n[e](d) && c.n[d](f) && delete c.n[d](f)}
c = c.n;
}
}
k.once = function(a,b){var c = function(){return k.unbind(a,c), b.apply(this.arguments)};
return k.on(a,c)},
k.version = d;
k.toString = function(){return "you are running Eve" + d},
"undefined" != typeof module && module.exports?module.exports = k:"undefined" != typeof define?define("eve",[],
function(){return k});a.eve = k
}(this),
function(a,b){"function" == typeof define?define(["eve"],function(c)return b(a,c));
b(a, a.eve)}(this,function(a,b){
var c = function(b){var c = {},d = a.requestAnimationFrame|| a.webkitRequestAnimationFrame|| a.mozRequestAnimationFrame|| a.oRequestAnimationFrame
|| a.msRequestAnimationFrame||function(a){setTimeout(a,16)},
e = Array.isArray||function(a){return a instanceof Array || "[object Array]" == object.prototype.toString.call(a)},
f = 0.g = "M" + (+new date).toString(36),h = function(){return g+(f++).toString(36),i = Date.now||
function(){return +new Date},
j=function(a){var b=this;if(null==a)return b.s;
var c=b.s-a;b.b+=b.dur*c,b.B+=b.dur*c,b.s=a},
k=function(a){var b=this;return null==a?b.spd:(b.spd=a,void 0)},
l=function(a){var b=this;return null==a?b.dur:(b.s=b.s*a/b.dur,b.dur=a,void 0)},
m=function(){var a=this;delete c[a.id],b("mina.stop."+a.id,a)},
n=function(){var a=this;a.pdif||(delete c[a.id],a.pdif=a.get()-a.b)},
o=function(){var a=this;a.pdif&&(a.b=a.get()-a.pdif,delete a.pdif,c[a.id]=a)},
p=function(){var a=0;for(var f in c)if(c.hasOwnProperty(f)){var g,h=c[f],i=h.get();
if(a++,h.s=(i-h.b)/(h.dur/h.spd),h.s>=1&&(delete c[f],h.s=1,a--,
function(a){setTimeout(function(){b("mina.finish."+a.id,a)})}(h)),e(h.start)){g=[];
for(var j=0,k=h.start.length;k>j;j++)g[j]=+h.start[j]+(h.end[j]-h.start[j])*h.easing(h.s)}
else g=+h.start+(h.end-h.start)*h.easing(h.s);h.set(g)}a&&d(p)},}}
})
}
以上是关于2016/02/06 codes的主要内容,如果未能解决你的问题,请参考以下文章