code: function(rules) {
        if (typeOf(rules) === "string") { //当不是hash传入时
          var tmp = {};
          tmp[rules] = arguments[1];
          rules = tmp;
        }
        // 可以同时接受object型或者key, value对的参数
        for (var i in rules) {
          var rule = rules[i];
          if (typeOf(rule) !== "object") {
            rule = {
              regexp: rule
            };
          }
          var reg = rule.regexp;
          if (typeOf(reg) === "regexp") {
            rule.regexp = reg.toString().slice(1, -1);
          }
          // 初始化order
          if (rule.order === undefined) rule.order = 1;
          this._rules[i] = rule;
        }
        // 每进行一次新规则监听，都重新组装一次
        this.setup();
        return this;
      }
docs: ###添加新规则 : 在nes中你可以想象成添加一个与Id、className、pesudo等价简单选择符