[ TDL ] 2/21/23

Beani._.i·2023년 2월 21일
0

TDL

목록 보기
8/9

질문

프로젝트 내에서 문제를 어떻게 해결했다.
ex) 반복적인 문제, 어떤 고민
배포 방법
http 관련
프록시
프로미스
호이스팅
클로저

css

calc()-css

텍스트가 div 범위 밖으로 나가는 현상 해결하기
word-break:break-all;
https://jhrun.tistory.com/209

목업테스트 데이터 만들기

  1. 배열 생성, New 태그 사용(- JS는 배열을 객체로 인지하기 때문에 NEW 태그 사용이 가능함)
  2. fill()메서드로 empty값에 0을 넣어준다.
  3. map 메서드를 사용해서 만들고 싶은 객체의 키와 값을 넣어준다.
const mockTestData = (): TestType[] => [
  ...new Array(30).fill(0).map((value, index) => ({
    studentUid: index + 1,
    studentGradeVersion: (Math.random() * (100 - 1 + 1)).toFixed(1),
    studentGradeLevelVersion: (Math.random() * (100 - 1 + 1)).toFixed(1),
    createdAt: dayjs()
      .add(index + 1, 'days')
      .format('YYYY-MM-DD'),
    editedAt: dayjs()
      .add(index + 1, 'days')
      .format('YYYY-MM-DD'),
    contents: `${index + 1} 내용입니다.`,
    creator: `${index + 1} 등록인`,
    displayable: true,
  })),
];
profile
어제보다 하나라도 더 알았으면 괜찮다!!!

0개의 댓글