<div class="codetitle"> <span><a style="CURSOR: pointer" data="89603" class="copybut" id="copybut89603" onclick="doCopy('code89603')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code89603"> <br>//문자 길이<br>function xLength(m, n) <br>{ <br>if(m==null || m=="")return "" <br>var s=m.replace(/([^x00-xff])/g,"x00 $1") ; <br>return (s.length<=n)?m:s.substring(0,n-3).replace(/x00/g,'') "..."; <br>} <br> </div> <font face="Verdana">http://3http.com/</font>