回答編集履歴
2
調整
test
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
const comment="y";
|
66
66
|
|
67
|
-
const item=["a","b","c"];
|
67
|
+
const item=["a","b",null,"c"];
|
68
68
|
|
69
69
|
item.forEach((i,j)=> {
|
70
70
|
|
1
ちょうせい
test
CHANGED
@@ -47,3 +47,53 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
```
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
# debug
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
```javascript
|
58
|
+
|
59
|
+
<script>
|
60
|
+
|
61
|
+
$(function(){
|
62
|
+
|
63
|
+
const mmss="x";
|
64
|
+
|
65
|
+
const comment="y";
|
66
|
+
|
67
|
+
const item=["a","b","c"];
|
68
|
+
|
69
|
+
item.forEach((i,j)=> {
|
70
|
+
|
71
|
+
const targetDiv2 = $(".ytp-tooltip");
|
72
|
+
|
73
|
+
const commentDiv = $(
|
74
|
+
|
75
|
+
`<div class="ytp-tooltip-text-wrapper22" value=${mmss} style="position: absolute; bottom: 100px;background-color: rgba(28,28,28,0.9); display: none">${comment}<span style="display:none">${j}</span></div>`
|
76
|
+
|
77
|
+
);
|
78
|
+
|
79
|
+
try {
|
80
|
+
|
81
|
+
targetDiv2.append(commentDiv);
|
82
|
+
|
83
|
+
console.log("appendした", commentDiv, targetDiv2);
|
84
|
+
|
85
|
+
} catch (err) {
|
86
|
+
|
87
|
+
console.log("err", err);
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
});
|
92
|
+
|
93
|
+
});
|
94
|
+
|
95
|
+
</script>
|
96
|
+
|
97
|
+
<div class="ytp-tooltip"></div>
|
98
|
+
|
99
|
+
```
|