jquery
trim() 문자열 앞뒤 공백제거
http://portfolio.wonpaper.net
2019. 12. 15. 11:18
<script>
var str = " gogogo ";
var trimStr1 = jQuery.trim(str);
function trim(stryo) {
return stryo.replace(/^\s+|\s+$/g,"");
}
var trimStr2 = trim(str);
</script>