ctx.type = 'text/html;charset=utf-8'; ctx.body = html; 将type设置为text/html,在ctx.body中添加html信息,也可以采用导入模块的方式 参考:https://www.jianshu.com/p/5f02c21329e5