部分js代码
<script> (function () { ////////////////////// // Utils ////////////////////// function throttle(fn, delay, scope) { // Default delay delay = delay || 250; var last, defer; return function () { var context = scope || this, now = +new Date(), args = arguments; if (last && now < last + delay) { clearTimeout(defer); defer = setTimeout(function () { last = now; fn.apply(context, args); }, delay); } else { last = now; fn.apply(context, args); } } } function extend(destination, source) { for (var k in source) { if (source.hasOwnProperty(k)) { destination[k] = source[k]; } } return destination; } </script>
在线预览
资源均来自第三方,谨慎下载,前往第三方网站下载