thinkphp如何将数据中的数据写入.js文件中

浏览:3698 发布日期:2014/08/25 分类:求助交流
我想将返回的json写到js文件中 ,求大神帮忙啊!!!

public function display_region_list()

{
$Region = M('Scenic_region',null);

$test = $Region -> select();

json_encode($test);

$data = array('Rows' => $test);

$this -> ajaxReturn(json_encode($data),'JSON');

}
最佳答案
评论( 相关
后面还有条评论,点击查看>>