Twitter Bootstrap 2 javascript插件无法正常工作 [英] Twitter Bootstrap 2 javascript plugins not working

查看:77
本文介绍了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插件无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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