JavaScript: Space for removing strings

xiaoxiao2021-03-06  88

code show as below:

Function trim (s) {

VAR M = S.MATCH (/ ^ / s * (/ s / s ) *) / s * $ /);

RETURN (M == NULL)? "": M [1];

}

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

New Post(0)