求助,F方法取数据取不到中文

浏览:333 发布日期:2014/02/23 分类:求助交流 关键字: F方法
<?php
// prop.php
return array(
array('id' => 1, 'text' => '应用'),
array('id' => 2, 'text' => '模块'),
array('id' => 3, 'text' => '方法'));
?>

// F方法调用
$this->prop = json_encode(F('prop', '', './Data/'));
$this->display();

利用F方法取出来的数据,中文部分为null
// console.info({$prop});
// 结果:[object { id=1, text=null}, object { id=2, text=null}, object { id=3, text=null}]

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