Upgrade to Pro — share decks privately, control downloads, hide ads and more …

亚马逊的快速菜单

sokamal
October 31, 2013

 亚马逊的快速菜单

快速展开的菜单原理介绍,以及 jQuery-menu-aim 插件使用

sokamal

October 31, 2013
Tweet

More Decks by sokamal

Other Decks in Programming

Transcript

  1. jQuery-menu-aim https://github.com/kamens/jQuery-menu-aim .menuAim({ activate: function() {}, deactivate: function() {}, enter:

    function() {}, exit: function() {}, exitMenu: function() {}, rowSelector: "> li",... // "left", "above", or "below". Defaults to "right". submenuDirection: "right" });
  2. 服务平台的例子 $menu.menuAim({ // 一级菜单 rowSelector: "[data-menuid]", // 激活菜单 activate:activateSubmenu, //

    取消激活 deactivate:deactivateSubmenu // 离开整个菜单区域 ,exitMenu:exitAllMenu });