controller
返回html
返回字符串
获取数据 getstring
校验数据 判空
操作数据 增删改查
返回数据或视图 this.ctx.writestring this.tplname=""
状态码 100 请求成功,但是继续发送 200请求成功 302重定向 404请求错误 500服务器错误
tplname能传递参数,redirect不能传递,传页面 错误页面用tplname
tplname地址不改变
controller
返回html
返回字符串
获取数据 getstring
校验数据 判空
操作数据 增删改查
返回数据或视图 this.ctx.writestring this.tplname=""
状态码 100 请求成功,但是继续发送 200请求成功 302重定向 404请求错误 500服务器错误
tplname能传递参数,redirect不能传递,传页面 错误页面用tplname
tplname地址不改变