• updateFilter


    $.fn.updateFilter = function(filterType, paramVal) {
        // filter="DATE|GREATERTHANEQUALS|LESSTHANEQUALS|" 
        // param="|01/01/1900|01/01/2100|" 
        // dtype="|DATE|DATE
        try {
            var div = $('#PQ_ExpirationDate').parent('div');
            var filter = div.attr('filter').split('|');
            var param = div.attr('param').split('|');
            var index = -1;
            for (var i = 0; i < filter.length; i++) {
                if (filter[i] == filterType) {
                    index = i;
                    break;
                }
            }
            if (index > -1) {
                param[index] = paramVal;
                param = param.join('|');
                div.attr('param', param);
            }
        } catch (e) {
            console.log(e);
        }
    }
    
  • 相关阅读:
    JSTL和EL
    JSP
    Servlet基础知识
    JSON基础知识
    jQuery基础知识
    ajax基础知识
    索引实战
    反射
    设计模式
    JVM的异常处理
  • 原文地址:https://www.cnblogs.com/wancy86/p/updateFilter.html
Copyright © 2020-2023  润新知