雨笑烟燃

专注于VB.net.关注WPF.

« 验证手机号码所属运营商的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.8 Walle Build 100427

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