当前位置 博文首页 > zcy_wxy的博客:Uncaught TypeError: xxx is not a function

    zcy_wxy的博客:Uncaught TypeError: xxx is not a function

    作者:[db:作者] 时间:2021-08-04 18:35

    原文地址:https://blog.csdn.net/u011870547/article/details/52765811

    错误: Uncaught TypeError: withdraw is not a function 错误,代码如下:

    <div class="form-group btn-right">
    ? ? <button type="button" class="btn btn-primary" id="withdraw" onclick="withdraw();">提现</button>


    原因: button控件的 id 名函数名相同了,执行的时候先找到的是HTML控件,所以会报这样的错误;

    解决方法:修改其中一个名称。

    cs
    下一篇:没有了