需求描述:
从 PHP 拿过来一组三维数组,现在想要通过 JQ/JS 获取里面数据。
{$layer}
的数组(不需要显示)?HTML
<volist name="layer" id="layer">
<php> print_r($layer);</php>
</volist>
打印结果
Array(
[id] => 2387
[image] => /Public/upload/users/2018/06-01/5b10f39be1305.jpg
[layername] =>
[floorid] => 1
[icon] => Array
(
[0] => Array
(
[posx] => 0.2541
[posy] => 0.3444
[onegoodscategoryid] => 868
[portnum] => 0
[portid] =>
[image] => /Public/upload/category/2018/04-12/5acee8b14f930.png
[iconname] => IC
[name] => 室内摄像机
)
[1] => Array
(
[posx] => 0.684
[posy] => 0.5306
[onegoodscategoryid] => 868
[portnum] => 0
[portid] =>
[image] => /Public/upload/category/2018/04-12/5acee8b14f930.png
[iconname] => IC
[name] => 室内摄像机
)
)
)
Array(
[id] => 2388
[image] => /Public/upload/users/2018/06-01/5b10f3d576921.jpg
[layername] =>
[floorid] => 2
[icon] => Array
(
[0] => Array
(
[posx] => 0.3859
[posy] => 0.474
[onegoodscategoryid] => 950
[portnum] => 0
[portid] =>
[image] => /Public/upload/category/2018/04-17/5ad565ce07a13.png
[iconname] => GS
[name] => 燃气感应器
)
)
)
吃鸡游戏
绝地无双
繁华开满天机