请写这个数组用asp语言怎么写?

来源:百度知道 编辑:UC知道 时间:2024/06/15 06:10:33
house_info:房源信息数组(多条房源对应多维数组)

house_info = array(
0 => array(
‘type’ => ‘sale’,
‘agent_id’ => ‘15’,
‘address’ => ‘和平区’,
……
),
1 => array(
‘type’ => ‘sale’,
‘agent_id’ => ‘15’,
‘address’ => ‘和平区’,
……
),
2 => array(

)
……
);

ASP可以通过定义多个数组来实现:

dim t(100)
dim ag(100)
dim ad(100)

t(0)="sale"
ag(0)="15"
ad(0)="和平区"

t(1)="sale"
ag(1)="15"
ad(1)="和平区"

.......

也可以用asp里class来

class house_info
dim t,ag,at
end class

set t= new house_info
set t1= new house_info

t.t="sale"
t1.t="sale"