button onclick function firing twice

后端 未结 7 1585
天涯浪人
天涯浪人 2020-12-08 00:20

I have a button that calls a javascript function using an event handler. For some reason, the event handler is being called twice.

Here is my button (I am using a ph

7条回答
  •  鱼传尺愫
    2020-12-08 01:05

    My event was firing twice because I accidentally included both my_scripts.js AND my_scripts.min.js. Ensure you only include one.

提交回复
热议问题