How to avoid page refreshing on anchor () tag click?

前端 未结 3 746
面向向阳花
面向向阳花 2021-01-14 04:17

I\'m creating a dynamic website. My problem is when i click on the following tag:



        
3条回答
  •  心在旅途
    2021-01-14 04:49

    What you want to accomplish is to update some counter of interestings w/o refreshing the page? You should do it using AJAX techniques, this is what AJAX was invented for.

    Consider the following code, it's top easy (jQuery library required):

    Interesante
    
    
    

提交回复
热议问题