对象对象没有方法 [英] object Object has no method

查看:139
本文介绍了对象对象没有方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里有个疯狂的问题.

不能真正粘贴代码,所以这更多是一个理论问题

Cant really paste the code so this is more a theory question

我先包含了jquery,然后是我的所有jquery插件

I've got jquery included first, then all my jquery plugins

所有插件都作为一个单独的console.log加载到其中,以表明已链接.

all the plugins are loaded as a dropped a console.log inside each to show it was linked.

但是,在尝试使用每个插件时,它都会返回

however on EVERY plugin when it tries to use it it returns

Uncaught TypeError: Object [object Object] has no method 'PLUGIN FUNCTION'

理论上会发生什么

推荐答案

正确的答案似乎是...

The correct answer seems to be...

我不知何故两次调用了jQuery,因此jQuery的第二次尝试是卸载了所有先前已加载的插件.

I somehow was calling jQuery twice, so the 2nd initation of jQuery was unloading all the previous loaded plugins.

这篇关于对象对象没有方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆