HOME 개발팁 Vue.js 총금액 숫자 숫자 콤마 찍기

프로그램 작업하다 좋은 팁, 정보, 테스트를 기록하는 곳입니다.


Vue | Vue.js 총금액 숫자 숫자 콤마 찍기

페이지 정보

작성자 전소현 작성일20-08-27 10:57 조회2,821회 댓글0건

본문

TypeScript

export default class Plant extends Vue {

private itemsCount: number  = 0;

this.itemsCount = 0;

  /*숫자 콤마 넣기*/
    itemsCntFormat(dataLe : number ) : any {
        let datacnt = new Number(dataLe);
        return datacnt.toFixed(0).replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")
    }

 this.itemsCount = this.itemsCntFormat( Number(gridData.length) );

}

#TypeScript  #숫자콤마넣기 #vue.js

[주소복사] https://www.goodsweb.kr/?u=D41A2Z7
SNS 알리기
핀터레스트
텔레그램로
블로그로
카카오스토리
카톡 공유

관련 블로그
로딩중


3명  IP : 18.220.♡.165
001 18.♡.120.133 CentOS 8.2 + PHP-FPM 7.4 + MariaDB 10.3 + 성공 - 개발팁
(/bbs/board.php?bo_table=tip&wr_id=324&page=3)
002 216.♡.66.232 원페이지 스크롤 네비게이션 (fullpage.js) - 개발팁
(/bbs/board.php?bo_table=tip&wr_id=220&page=9)
003 18.♡.95.38 History
(/bbs/board.php?bo_table=history&me_code=1010)

접속자
  • 오늘 : 92
  • 어제 : 363
  • 최대 : 874
  • 전체 : 404,014

검색로봇(Robots) 최근 방문시간
  • BING : 3시간 전
  • GOOGLE : 10시간 전
  • NAVER : 21시간 전
  • DAUM : 3일 전

ETH : 0x8abf3B748ab78828AE07685e4fd53d1a606f18D3



페이스북 네이버 블로그 굿스웹 쇼핑몰 네이버 카페 굿스웹 트위터 굿스웹 티스토리 Google Play