//添加

(function ($, h, c) { var a = $([]), e = $.resize = $.extend($.resize, {}), i, k = "setTimeout", j = "resize", d = j + "-special-event", b = "delay", f = "throttleWindow"; e[b] = 250; e[f] = true; $.event.special[j] = { setup: function () { if (!e[f] && this[k]) { return false } var l = $(this); a = a.add(l); $.data(this, d, { w: l.width(), h: l.height() }); if (a.length === 1) { g() } }, teardown: function () { if (!e[f] && this[k]) { return false } var l = $(this); a = a.not(l); l.removeData(d); if (!a.length) { clearTimeout(i) } }, add: function (l) { if (!e[f] && this[k]) { return false } var n; function m(s, o, p) { var q = $(this), r = $.data(this, d); r.w = o !== c ? o : q.width(); r.h = p !== c ? p : q.height(); n.apply(this, arguments) } if ($.isFunction(l)) { n = l; return m } else { n = l.handler; l.handler = m } } }; function g() { i = h[k](function () { a.each(function () { var n = $(this), m = n.width(), l = n.height(), o = $.data(this, d); if (m !== o.w || l !== o.h) { n.trigger(j, [o.w = m, o.h = l]) } }); g() }, e[b]) } })(jQuery, this);

//调用

$('#center-pane').resize(function () {

});

最新文章

  1. Git同步原始仓库到Fork仓库中
  2. 关于vue指令(directive)
  3. javap反编译解释外部类直接使用内部类private字段的原理
  4. 在Mac OSX 10.10 上安装opencv
  5. 注意!你的Thread.Abort方法真的让线程停止了吗?
  6. 1303: [CQOI2009]中位数图
  7. MinGW-64 安装
  8. 游戏基础元素——Cocos2d-x学习历程(八)
  9. jbpmAPI-5
  10. 使用链表实现队列------《数据结构与算法分析-C语言描述》
  11. android布局margin和padding差异!
  12. overflow:hidden
  13. 【性能测试工具】- ApacheBench
  14. 201521123081《Java程序设计》 第10周学习总结
  15. [转帖]Ansible 入门秘诀
  16. 看到一个想收藏的的AJAX小列子
  17. Divide by three, multiply by two CodeForces - 977D (思维排序)
  18. 【学亮IT手记】利用字节流复制图片
  19. codeforces732C
  20. v4l2文档之——color and format【转】

热门文章

  1. Lua C++ Binding之Lunar, Luna
  2. android 学习资源总结
  3. B-index、bitmap-index、text-index使用场景详解
  4. Razor 视图引擎 – ASP.NET MVC 4 系列
  5. SSL安全证书-概念解析
  6. 自定义滚动条 - mCustomScrollbar
  7. [Linux] 安装JBoss - CentOS
  8. Android SQLite 通配符查询找不到参数问题
  9. 【MySQL】锁入门
  10. Web性能测试工具JMeter