回答編集履歴
1
調整
test
CHANGED
@@ -5,3 +5,15 @@
|
|
5
5
|
var newRow = table_data.insertRow(-1);
|
6
6
|
}
|
7
7
|
```
|
8
|
+
|
9
|
+
# 調整
|
10
|
+
挿入をわかりやすく調整
|
11
|
+
```javascript
|
12
|
+
function iframe_test(){
|
13
|
+
var o_iframe = document.querySelector('iframe');
|
14
|
+
var table_data = o_iframe.contentWindow.document.querySelector('.editable-table tbody');
|
15
|
+
var newRow = table_data.insertRow(-1);
|
16
|
+
var newCell=newRow.insertCell(-1);
|
17
|
+
newCell.textContent="test";
|
18
|
+
}
|
19
|
+
```
|