閱讀299 返回首頁    go 技術社區[雲棲]


jQuery插件treeview點擊節點名稱不展開、收縮節點

修改jquery.treeview.js文件中的applyClasses方法(注釋掉兩行代碼):

修改後的applyClasses方法如下:

applyClasses: function(settings, toggler) {
/*
this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(event) {
toggler.apply($(this).next());
}).add( $("a", this) ).hoverClass();
*/


if (!settings.prerendered) {
// handle closed ones first
this.filter(":has(>ul:hidden)")
.addClass(CLASSES.expandable)
.replaceClass(CLASSES.last, CLASSES.lastExpandable);

// handle ope

最後更新:2017-04-03 07:57:05

  上一篇:go jvm開發筆記5 – 虛擬機內存管理
  下一篇:go 生老病死相互扶持這事真特麼不是鬧著玩的。