问题背景:lz在使用<em>bootstrap</em>遇到下拉列表无效问题,lz引用的jQuery文件为jquery-1.8.2.min.js,bootstarp文件为<em>bootstrap</em>.min.css、<em>bootstrap</em>.min.js。
解决过程:在浏览器打开页面,F12 Network检查js、css资源文件是否正确引用,发现没问题,然后Console发现<em>bootstrap</em>.js报错
Uncaught E
做jquery练习的时候需要在外部<em>触发</em>元素的”<em>hover</em>”事件,于是,问题来了:根本没有<em>触发</em>,无论是trigger( )还是triggerHandler( ),查询后得知:
Deprecated in jQuery 1.8, removed in 1.9: The name “<em>hover</em>” used as a shorthand for the string “mouseenter
第一步:新建一个js文件,取名boostrap-<em>hover</em>-dropdown.js。代码如下:
;(function($,
window, undefined) {
//
outside the scope of the jQuery plugin to
//
keep track of all dropdowns
var
$allDropdowns =