/** * layui_dropdown * v2.3.5 * by Microanswer * http://layuidropdown.microanswer.cn/ **/ Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new Error("Function.prototype.bind - what is trying to be bound is not callable");function n(){}function i(){return e.apply(this instanceof n&&t?this:t,o.concat(Array.prototype.slice.call(arguments)))}var o=Array.prototype.slice.call(arguments,1),e=this;return n.prototype=this.prototype,i.prototype=new n,i}),layui.define(["jquery","laytpl"],function(t){function i(t,n){var i=e[t]||[];i.push(n),e[t]=i}function d(t,i){var n=e[t]||[];a.each(n,function(t,n){n(i)})}var a=layui.jquery||layui.$,l=layui.laytpl,o="a",p="b",e={},c="1",h="2",m="3";function f(t){if(!t)throw new Error("菜单条目内必须填写内容。");if("hr"===t)return"hr";if(0!==t.indexOf("{"))throw new Error("除了分割线hr,别的菜单条目都必须保证是合格的Javascript对象或json对象。");return new Function("return "+t)()}function u(t){for(var n=0;n