更优雅地取basepath   basepath = kernel.base = url.substr(0, url.lastIndexOf("/") + 1) ;