static function filter($data) { $buffer = null; $rule_arr = explode('/', self::post(null, 'tip')); if (is_array($data)) { foreach ($data as $option => $rule) { if (!in_array($rule, $rule_arr)) { //过滤若未定义 http::js('undefined ' . $rule, 'alert'); } $buffer[$option] = self::post($option, $rule); } } return $buffer; }