2022. 11. 14. 12:58
[Javascript] Trim()
2022. 11. 14. 12:58 in 팁&테크/Javascript
if (!String.prototype.trim) {
String.prototype.trim = function () {
return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
};
}