Twitter Bootstrap 2 javascript插件无法正常工作

编程入门 行业动态 更新时间:2024-10-28 04:22:36
本文介绍了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插件无法正常工作

本文发布于:2023-07-25 09:02:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1208955.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法正常   插件   工作   Twitter   Bootstrap

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!