Javascript 끝 문자열 제거
작성일 17-04-28 09:33
페이지 정보
작성자서방님 조회 257회 댓글 0건본문
<script type="text/javascript">
<!--
var str = '005001002001';
aaa = str.slice(0,-3);
document.write("<br>"+str);
document.write("<br>"+aaa);
//-->
</script>
관련 설명 페이지.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice
댓글목록
등록된 댓글이 없습니다.