How to solve a conflict with primefaces jquery

后端 未结 2 918
既然无缘
既然无缘 2020-12-08 18:08

Im developing a project with primefaces 5, one page uses a js file that needs jquery, but shows Uncaught TypeError: undefined is not a function, but when I cha

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 18:14

    I had also like you problem. Make sure script declaration as below example. Don't use $(....) sing. Use jQuery(...). It is ok for me.

    
        
        
        
               
    
    

    Multiple different versions of jQuery co-existing

提交回复
热议问题