function
trim(str) {
return
str.replace(/^\s\s*/,
''
).replace(/\s\s*$/,
''
);
}
String.prototype.trim =
function
() {
return
this
.replace(/^\s\s*/,
''
).replace(/\s\s*$/,
''
);
}
blog.visualp.com
function
trim(str) {
return
str.replace(/^\s\s*/,
''
).replace(/\s\s*$/,
''
);
}
String.prototype.trim =
function
() {
return
this
.replace(/^\s\s*/,
''
).replace(/\s\s*$/,
''
);
}