js 文件中

var mingchen= mingchen|| {
    init: function (){

  }

};

 

 

文件中

 mingchen.init();

 

 

 

注意问题:

在新加载 页面中      jquery 页面再次加载时      事件有可以不可用,,需要重新再加载

 

具体写法为:

    $(document).on('mouseenter', '唯一标示', function (event) {
     $(this).next().collapse('show');
 }).on('mouseleave', '唯一标示', function (event) {
     $(this).next().collapse('hide');
 });

相关文章:

  • 2021-09-10
  • 2021-11-18
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2021-09-20
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
相关资源
相似解决方案