多維數(shù)組如何在視圖中渲染
問題描述
[5] => array(3) { ["id"] => int(5) ["title"] => string(24) "接地電阻測試設(shè)備" ["chanping"] => array(5) { [0] => array(2) {["fid"] => int(5)["title"] => string(30) "多功能接地電阻測試儀" } [1] => array(2) {["fid"] => int(5)["title"] => string(21) "接地電阻測試儀" } [2] => array(2) {["fid"] => int(5)["title"] => string(27) "鉗形接地電阻測試儀" } [3] => array(2) {["fid"] => int(5)["title"] => string(39) "水內(nèi)冷發(fā)電機(jī)絕緣電阻測試儀" } [4] => array(2) {["fid"] => int(5)["title"] => string(39) "水內(nèi)冷發(fā)電機(jī)絕緣電阻測試儀" } } }
問題解答
回答1:這是后段組裝好的數(shù)據(jù),這是多維數(shù)組,如何渲染出來回答2:后端$this->assign()前端用<volist>
相關(guān)文章:
1. python - 我在使用pip install -r requirements.txt下載時,為什么部分能下載,部分不能下載2. mysql - 分庫分表、分區(qū)、讀寫分離 這些都是用在什么場景下 ,會帶來哪些效率或者其他方面的好處3. node.js - nodejs開發(fā)中常用的連接mysql的庫4. 網(wǎng)頁爬蟲 - python 爬取網(wǎng)站 并解析非json內(nèi)容5. mysql - jdbc的問題6. Python爬蟲如何爬取span和span中間的內(nèi)容并分別存入字典里?7. 視頻文件不能播放,怎么辦?8. mysql - 如何減少使用或者不用LEFT JOIN查詢?9. python - 編碼問題求助10. linux - python 抓取公眾號文章遇到驗(yàn)證問題
