2 JS functions with same name conflict

后端 未结 5 1063
野性不改
野性不改 2021-02-15 15:17

Short

Using 2 libraries at same page: jQuery UI and Twitter Bootstrap:

  • jQuery UI very important for me because nearly all UI things built based on it
5条回答
  •  粉色の甜心
    2021-02-15 15:28

    To fix the collision between Bootstrap and jQuery UI functions, rename one of them:

    
    
    
    

    And then you can call each function at will:

    
    

    You can use this technique for any function you need.

    Remember the order include A -> rename A -> include B.

提交回复
热议问题