code: function (name, action, inspectors) {
  
  			switch (arguments.length) {
  				case 1:
  					// [action]
  					action = name;
  					name = Function.getName(action).replace("Action", "");
  					break;
  				case 2:
  					if (typeof name === "function") { // [name, action]
  						inspectors = action;
  						action = name;
  						name = Function.getName(action).replace("Action", "");
  					} // [action, inspectors]
  					break;
  				case 3:
  					break;
  				default:
  					break;
  			}
  			name = name || INDEX;
  			addAction(actions, name, action, inspectors);
  		}
docs: 添加 action 用的函数