jQuery click: The function is running before I click the button. The code which is to be executed is already wrapped inside a function in click()

前端 未结 0 833
长情又很酷
长情又很酷 2021-01-17 04:56

The function inside $(\'#btnPrint\').click() is running as soon as the page is loading. I did this:

$(document).ready(function(){
$(\'#btnPrint\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题