正文
【原创】Easyui tree filter 过滤本地数据无效的原因
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
Easyui tree filter 过滤本地数据无效的解决方式
正确使用方式
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | $( "#organization123" ).tree({ data:[{ "id" : 1, "text" : "Node 1" , "state" : "open" , "nodeType22" : 1, "children" : [{ "id" : 11, "text" : "Node 11" },{ "id" : 12, "nodeType22" : 123, "text" : "Node 12" }] },{ "id" : 2, "text" : "Node 2" , "nodeType22" : 123, "state" : "open" }], filter: function (q, node){ // q: doFilter的第二个参数 return node.nodeType22 == 123 ? true : false ; } }); $( '#organization123' ).tree( 'doFilter' , '' ); |