返回列表 發帖
可以把規則定好,例如每個 TreeNode 都有個 href 的屬性,分別記錄 a.html, b.html, c.html...

事件統一在 TreePanel 處理:
menuTree.on('click', function(node, e) {
    e.stopEvent();
    var src = node.attributes.href;
    //...
});
To infinity and beyond!

TOP

返回列表 回復 發帖