public function insert($query, $e, $strict = false)
{
list($path, $param) = explode('?', $query) + array(null, null);
$path = str_replace('\\', '/', $path);
$paths = explode('/', $path);
$route = null;
$params = null;
if ($param !== null && $param !== "") {
$params = explode('&', $param);
}
if ($strict || !empty($params)) {
$paths[] = Tree::$end;
//对于严格匹配的路由规则(有querystring的路由,path部分也需要严格匹配),在路径末尾加入end,偏于匹配
}
return $this->insertByArray($paths, $params, $e);
}