本文介绍了Twitter Bootstrap 2 javascript插件无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Firebug抛出这些错误:
$(document).on不是函数bootstrap.js(第786行):
$(document).on('keyup.dismiss.modal',function(e ){$(body)。on不是函数| bootstrap.js(第139行) ):
$('body')。on('click.alert.data-api',dismiss,Alert.prototype .close)然后插件不起作用。
关于如何解决这个问题的任何想法?
我当然在引导之前加载jquery,所以我不知道是什么问题.Jquery工作正常。
解决方案没关系,我使用的是不同版本的jQuery。下载了最新版本,工作正常。 / p>
Firebug is throwing these errors:
$(document).on is not a function | bootstrap.js (line 786):
$(document).on('keyup.dismiss.modal', function ( e ) {$("body").on is not a function | bootstrap.js (line 139):
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)And then the plugins don't work.
Any ideas on how to fix this?
I'm loading jquery before bootstrap of course, so I don't know what's the problem. Jquery is working fine.
解决方案Nevermind, I was using a different version of jQuery. Downloaded the latest version and it worked fine.
更多推荐
Twitter Bootstrap 2 javascript插件无法正常工作
发布评论