How to code one jquery function for all AJAX links

前端 未结 4 964
生来不讨喜
生来不讨喜 2020-12-11 08:25

I am using zend framework on windows. I want to implement ajax in my project first time. I searched for help and created a very simple ajax functionality.

In

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 09:01

    Simple and Nice. No Jquery required. Check this out: Bjax

    Usage:

    
    
    

    Finally, include this in the HEAD of your html:

    $('a').bjax();
    

    For more settings, checkout demo here: Bjax Demo

提交回复
热议问题