JQ 使用toggle实现DIV的隐藏和显示

时间:2023-03-09 20:37:07
JQ 使用toggle实现DIV的隐藏和显示

$('.submenuA').toggle(

  function () {
  $(this).next('div').show();
  },

   function () {
  $(this).next('div').hide();
})