导航菜单

« 验证手机号码所属运营商的JS代码debian date设置 »

Js中模拟.Net功能(二)

模式 String.endwith 功能.

String.prototype.endwith = function(element) {
    if (this.length > 0) {
        if (element.length > 0) {
            if (this.substring(this.length-element.length)==element) {
                return true;
            }
        }
    }
    return false;
}

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。



日历

网站目录

最新评论

最近发表

Powered By Z-Blog 1.6 Beta Build 60517

Copyright yxyr.com ,Some Rights Reserved.浙ICP备06021833号