daily-story
[javascript] trim()
프로그래밍 2011. 11. 23. 16:26

함수로 만들어서 사용 function trim(val) { return val.replace(/(^\s*)|(\s*$)/g,""); }