Prototype / Mootools conflict question

前端 未结 2 1214
孤城傲影
孤城傲影 2021-01-03 03:57

So I have a page that uses both Prototype and Mootools AJAX scripts.

There is much more Mootools that Prototype, so I\'m wondering if Prototype has a function simila

2条回答
  •  醉话见心
    2021-01-03 04:40

    The newest version of MooTools has a no conflict mode. Unfortunately, Prototype does not, which means that the $ will have to be bound to Prototype.

    To enable the Dollar Safe Mode, upgrade your version of MooTools and make sure you include MooTools after Prototype.

    
    
                                     
                  
提交回复
热议问题