Javascript click event triggers twice

前端 未结 3 774
时光取名叫无心
时光取名叫无心 2021-01-04 09:30

In the following snippet, why does divClicked() trigger twice when the is clicked, but only once wh

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-04 09:43

    At some moments, check also if the javascript file asset isn't loaded twice .... it shouldn't happen, but you never know.

提交回复
热议问题