开发者

2 same (function,class) name "Ajax" in prototype

开发者 https://www.devze.com 2023-01-15 11:25 出处:网络
In the project I am working on uses established and then used in many parts function Ajax (recvType, waitId)

In the project I am working on uses established and then used in many parts

 function Ajax (recvType, waitId)

I want to use the "prototype framework" it have class Ajax it is better to do and wh开发者_Go百科ere to change ? or change in prototype and afte using another name instead Ajax some else name? Or change in all project ? or is there a way to produce two desired method with the same name?


Prototype has a class named Ajax. This is bound to create conflicts with your existing class.

I would strongly recommend renaming your class. Renaming Prototype's Ajax class is a lot of work, you'd have to repeat it for every new version, and it may break other plugins relying on it.

JSFiddle demo throwing an error

0

精彩评论

暂无评论...
验证码 换一张
取 消