您的位置:首页 > 其它

Uncaught TypeError: XXX is not a function解决

2018-03-28 18:17 1721 查看
后台没有错误,前端一直显示 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>
</div>
1
2
3
[/code]

出现这样的错误是因为 button控件的 id 名和 函数名相同了,执行的时候先找到的是HTML控件,所以会报这样的错误,修改其中一个名称就OK了。

转自:https://blog.csdn.net/u011870547/article/details/52765811
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐