jquery-easyui总结备忘

jquery easyui

官方文档地址:http://www.jeasyui.com/documentation/#

treegrid

1、寻找节点

var node = $("#tg").treegrid("find", node.id);

2、节点展开

$("#tg").treegrid("expandTo", node.id);

3、重新加载节点下的子节点

$("#tg").treegrid("reload", node.id);

// 如何节点为叶子节点可能面临加载失败,可以换做( idFiled :初始化treegird绑定时使用字段):
$("#tg").treegrid("append", {
    parent: node.id,
    data: [{idFiled:'随意',name:'' }]
});

$("#tg").treegrid("reload", node.id);

1.5版本 comboTree、combo 不检索中文(firefox浏览器下)

if(opts.editable){


    var _85b = t.combo("textbox");
    _85b.bind("input",function(e){
        if(_a04.timer){
            clearTimeout(_a04.timer);
        }
        _a04.timer=setTimeout(function(){
            var q=_85b.val();
            if(_a04.previousValue != q){
                _a04.previousValue = q;
                t.combo("showPanel");
                opts.keyHandler.query.call(_a03, _85b.val(),e);
                t.combo("validate");
            }
        },opts.delay);
    });
    /**end**/

    if(_a04.timer){
        clearTimeout(_a04.timer);
    }
    _a04.timer=setTimeout(function(){
        var q=t.combo("getText");
        if(_a04.previousText!=q){
            _a04.previousText=q;
            t.combo("showPanel");
            opts.keyHandler.query.call(_a03,q,e);
            t.combo("validate");
    }
    },opts.delay);
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值