//指定加载模板文件 return $this->fetch(Env::get('MODULE_PATH') . '/view/test/index.js'); 转载于:https://www.cnblogs.com/lobtao/articles/10666171.html