var bus_station=["A","B","C","D","E"];
var arr_name_id=[];
var arr_name=[];
var arr_from_address=[];
var arr_from_time=[];
var arr_to_time=[];
var arr_to_address=[];
function up_bus(id,name,address,time){
arr_name_id.push(id);
arr_name. push(name);
arr_from_address.push(address);
arr_from_time.push(time);
}
function down_bus(id,address,time){
arr_to_address[id]=address;
arr_to_time[id]=time;
}
up_bus(0,"张三",bus_station[0],"8:00");
up_bus(1,"李四",bus_station[0],"8:00");
up_bus(2,"王五",bus_station[0],"8:00");
up_bus(3,"name3",bus_station[1],"8:08");
down_bus(1,bus_station[2],"8:08");
down_bus(0,bus_station[2],"8:15");
down_bus(2,bus_station[4],"8:30");
down_bus(3,bus_station[4],"8:30");
document.write("name:"+arr_name+"<br>");
document.write("name_id :"+arr_name_id+"<br>");
document.write("from_address:"+arr_from_address+"<br>");
document.write("from_time:"+arr_from_time+"<br>");
document.write("to_address:"+arr_to_address+"<br>");
document.write("to_time:"+arr_to_time+"<br>");