cssmagic/action js
action js 关键点
var $wrapper = $(document.body || document.documentElement) $wrapper.on('click','[data-action]',function(ev){ ev.preventDefault(); var $elem = $(this); var actionName = elem.data('action'); fn = _actionList[actionName]; fn.call(); })