Javascript函数是未定义的错误

时间:2018-06-10 04:33:37

标签: javascript function undefined undefined-function

以下是我的完整HTML和Javascript代码,但在浏览器中运行时显示错误=countIF(A:A,B3)

=IF(countIF(A:A,B3)=0,"",countIF(A:A,B3))

1 个答案:

答案 0 :(得分:0)

您显然无法使用自动关闭标记,请将d3导入更改为:

  <script type="text/javascript" src="d3-v5.js"></script>

&#13;
&#13;
<html>
    <head>
        <title>Testing D3</title>
        <script type="text/javascript" src="d3-v5.js"></script>
        <script type="text/javascript">
            function draw(data){
                console.log(data);
            }
        </script>
    </head>
    <body>
        <script type="text/javascript">
            draw(12);
        </script>
    </body>
</html>
&#13;
&#13;
&#13;