我正在尝试使用 ContextMenu.js 来显示一个弹出菜单,但此代码不起作用。我从这里获取了这段代码:https ://codepen.io/Iamafro/pen/bLqyGd
我想要相同的功能,但是当我将它写入单个文件时它不起作用。这种格式:
<!DOCTYPE html>
<html>
<head>
<title></title>
<script> all the java script code from above link goes here </script>
<style> all the css code from above link goes here </style>
</head>
<body>
all the html code from above link goes here
</body>
</html>
