开发者

MooTools return undefined object

开发者 https://www.devze.com 2023-02-04 02:48 出处:网络
I have predefine MooTo开发者_StackOverflow社区ols.js and some another javascript called moomenu for dropdown...

I have predefine MooTo开发者_StackOverflow社区ols.js and some another javascript called moomenu for dropdown... However i could test the code and i come to know that "typeof(MooTool)" return undefined... I am new to MooTool so will any body please tell me what happens there???


It's because your calling it "MooTool" instead of "MooTools"; however, if you look at the source, var MooTools only refers to an object with the version and build information. If you're trying to select an element, you want to look at the $ and $$ functions of the Element object:

http://mootools.net/docs/core/Element/Element

0

精彩评论

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