JS removes the front and rear spaces of the string

xiaoxiao2021-03-06  14

Function killspace (x) {

While (x.length> 0) && (x.Charat (0) == ')) {x = x.substring (1, x.length);} for (i = 0; i

String.prototype.trim = function () {Return this.Replace (/ (^ / s ) | / s $ / g, "")

转载请注明原文地址:https://www.9cbs.com/read-49088.html

New Post(0)