循环遍历数组 一维数组上 $res-各字段 <html> ...省略 {foreach $res as $key=>$v} <td>{$v.字段名}</td> <td>{$res.key.字段名}</td>