开发者

MooTools return undefined object

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜