您好,以下是我的完整 HTML 和 Javascript 代码,但在浏览器中运行时显示错误Uncaught ReferenceError: draw is not defined test.html:13
。
<html>
<head>
<title>Testing D3</title>
<script type="text/javascript" src="d3-v5.js"/>
<script type="text/javascript">
function draw(data){
console.log(data);
}
</script>
</head>
<body>
<script type="text/javascript">
draw(12);
</script>
</body>
</html>