jquery 绑定文本即时查询功能

        bindFilterFunc: function () {
            if ("v" == "v") { // IE only
                $("#inputSearch").bind("propertychange"function () { role.list.filterTable() });
 
            } else { // !IE
                $("#inputSearch")[0].addEventListener("input", role.list.filterTable, false);
            };
        },
        filterTable: function () {
            role.list.getRoleList($("#inputSearch").val(), function () { dialog.close(); });
        },
原文地址:https://www.cnblogs.com/wdw31210/p/3247528.html