trunk/research/players/js/winlin.utility.js
/**
 * whether the str ends with flag.
 */
whether the str ends with flag.
whether the str ends with flag .
function system_string_endswith(str, flag) {
    if (typeof flag == "object" && flag.constructor == Array) {
        for (var i = 0; i < flag.length; i++) {
            if (system_string_endswith(str, flag[i])) {
                return true;
            }
        }
    }
    return str && flag && str.length >= flag.length && str.indexOf(flag) == str.length - flag.length;
}
function system_string_endswith ( str , flag ) { if ( typeof flag == "object" && flag . constructor == Array ) { for ( var i = 0 ; i < flag . length ; i ++ ) { if ( system_string_endswith ( str , flag [ i ] ) ) { return true ; } } } return str && flag && str . length >= flag . length && str . indexOf ( flag ) == str . length - flag . length ; }
whether the str ends with flag.
whether the str ends with flag .