From b81c570b1604ba7e9de10b23f99a0b7f3d46673d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BA=A6=E5=BD=93=E8=8B=97=E5=84=BF?= Date: Thu, 18 Apr 2013 22:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BE=93=E5=87=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E9=81=BF=E5=85=8D=E8=BE=93=E5=87=BA=E6=95=B4?= =?UTF-8?q?=E5=9E=8B=E6=95=B0=E5=80=BC=E5=87=BA=E9=94=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Think/Controller.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Think/Controller.php b/Library/Think/Controller.php index 8c5a9143..dbcad441 100644 --- a/Library/Think/Controller.php +++ b/Library/Think/Controller.php @@ -101,11 +101,13 @@ class Controller { case 'HTML': // 返回html片段 header('Content-Type:text/html; charset=utf-8'); - exit($data); + echo $data; + exit; case 'TEXT': // 返回一段纯文本 header('Content-Type:text/plain; charset=utf-8'); - exit($data); + echo $data; + exit; default: // 用于扩展其他返回格式数据 Tag::listen('ajax_return', $data);