JavaScript trim 实现去除字符串首尾指定字符的简单方法实例如下: String.prototype.trim = function (char, type) { if (char) { if (type == 'left') { return ...
確定! 回上一頁