0
표의 특정 셀을 쿼리하여 텍스트 또는 내부 HTML을 변경하고 싶습니다.다트의 표에서 셀 쿼리하기
테이블 시료 :
<table id="infotable">
<thead></thead>
<tbody id="tData">
<tr>
<td>SomeCompany1</td>
<td>SomeProduct1</td>
<td>PriceType1</td>
<td id="164">Awaiting data...</td>
</tr>
[...]
상기 표의 첫 번째 행의 세 번째 셀 제가 id="164"
속성으로 식별 한 내 목표이다.
'Error: SyntaxError: DOM Exception 12'
: 다트 편집기에서 다음과 같은 오류에
TableCellElement cell = document.query('#164');
및
var cell = query('#164');
모두 결과 : 다트 스크립트에서
,이 세포를 쿼리하는 두 가지 방법을 시도