Two onClick actions one button

前端 未结 4 1282
北海茫月
北海茫月 2020-12-01 14:48

Does someone know a wizards trick to make it work ?



        
4条回答
  •  Happy的楠姐
    2020-12-01 15:10

    Additional attributes (in this case, the second onClick) will be ignored. So, instead of onclick calling both fbLikeDump(); and WriteCookie();, it will only call fbLikeDump();. To fix, simply define a single onclick attribute and call both functions within it:

    
    

提交回复
热议问题