$.trim在Ie7,8报错

在js中添加以下内容


String.prototype.trim = function () {
        return this.replace(/^\s*([\S\s]*?)\s*$/, '$1');
    }

猜你喜欢

转载自blog.csdn.net/github_39051926/article/details/80481869
今日推荐