thinkphp如何在html页面输出数据库数据

2025-03-30 13:58:13
推荐回答(1个)
回答1:

$data 是你控制器得到的数据
$this->assign('data',$data);
默认{$data}
如果是数组

{$item['name']}