回答編集履歴
1
chousei
test
CHANGED
@@ -14,13 +14,7 @@
|
|
14
14
|
|
15
15
|
const menu=document.querySelector(`[data-contextmenu="${id}"]`);
|
16
16
|
|
17
|
-
menu.style
|
17
|
+
Object.assign(menu.style,{display:"block",top:e.pageY,left:e.pageX});
|
18
|
-
|
19
|
-
menu.style.top=e.pageY;
|
20
|
-
|
21
|
-
menu.style.left=e.pageX;
|
22
|
-
|
23
|
-
console.log(menu);
|
24
18
|
|
25
19
|
});
|
26
20
|
|