javascript

var json = { 'NAME':'홍길동', 'SEX':'남', 'AGE':'99세'};

for(key in json) {
    alert('key:' + key + ' / ' + 'value:' + json[key]);
}

jquery

var json = { 'NAME':'홍길동', 'SEX':'남', 'AGE':'99세'}; 

$.each(json, function(key, value){
    alert('key:' + key + ' / ' + 'value:' + value);
});

참고

https://gent.tistory.com/17

 

[javascript|자바스크립트] foreach 구문을 이용하여 JSON 값 쉽게 가져오기 (json key get value)

자바스크립트의 foreach 구문을 이용하여 JSON 객체의 키(key)와 값(value)를 쉽게 가져올 수 있다. jQuery를 사용한다면 $.each 구문을 대신 사용할 수도 있다. ■ Javascript var json = { 'NAME':'홍길동', 'S..

gent.tistory.com

html의 td style 부분에 아래 내용을 추가

{ white-space:pre-line , word-break: break-all}

<table id="test_table">
  <thead>
    <tr>
      <th style="text-align:center;">ID</th>
      <th style="text-align:center;">Info Detail</th>
      <th style="text-align:center;">Date</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td> 1 </td>
      <td style="white-space:pre-line;word-break: break-all;">
        Info 1
        Info 2
        Value 1
        Value 2
      </td>
      <td>'2021-07-10 09:00:00' 
      </td>
    </tr>
  </tbody>
  <tfoot>
  </tfoot>
</table>

참고

https://stackoverflow.com/questions/10937218/how-to-show-multiline-text-in-a-table-cell

 

How to show multiline text in a table cell

I want to show a paragraph from database into a table cell. The result is a large 1 line, ignoring how its organised in database. ignoring 'enters' for example (new lines) I want to show it exactly

stackoverflow.com

요약

[cmd 관리자 모드로 접속] 

 

--명령어 실행
diskpart

-- disk 리스트 확인
list disk

-- disk 선택
select disk 1

-- disk 활성화
online disk
-- readonly 설정 복구
attributes disk clear readonly

 

예제

DISKPART> list disk

  디스크 ###  상태           크기     사용 가능     Dyn  Gpt
  ----------  -------------  -------  ------------  ---  ---
  디스크 0    온라인        279 GB           0 B
  디스크 1    예약됨        558 GB           0 B
  디스크 2    예약됨        279 GB           0 B

DISKPART> select disk 1

1 디스크가 선택한 디스크입니다.

DISKPART> online disk

가상 디스크 서비스 오류:
지정한 디스크 또는 볼륨은 Microsoft 장애 조치(failover) 클러스터링 구성 요소에서
 관리합니다. 이 작업을 수행하려면 디스크가 클러스터 유지 관리 모드이고 클러스터
리소스 상태가 온라인이어야 합니다.

<<< 클러스터에 추가한 노드 제거...(클러스터에 노드 추가시 저장소 포함으로 설정하여 문제가 발생함...)

DISKPART> online disk

DiskPart에서 선택한 디스크를 온라인으로 설정했습니다.

DISKPART> attributes disk clear readonly

디스크 특성을 지웠습니다.

DISKPART> select disk 2

2 디스크가 선택한 디스크입니다.

DISKPART> online disk

DiskPart에서 선택한 디스크를 온라인으로 설정했습니다.

DISKPART> attributes disk clear readonly

디스크 특성을 지웠습니다.

DISKPART> list disk

  디스크 ###  상태           크기     사용 가능     Dyn  Gpt
  ----------  -------------  -------  ------------  ---  ---
  디스크 0    온라인        279 GB           0 B
  디스크 1    온라인        558 GB           0 B
* 디스크 2    온라인        279 GB           0 B

DISKPART>

to Top