js 遍历后台传给前台的list

后台代码

	@RequestMapping("/address_lon_lat")
	public String addressLonLat(Model model) {
		//获取本地文本地址里面的内容
		String file_name = "C:/Users/Administrator/Desktop/所有营业点地址111.txt";
		List arrayList = centralService.readFileByLines(file_name);
		model.addAttribute("arrayList", arrayList);
		return "lgyj/address_lon_lat";
	}

js处理,其实就是遍历一遍,然后把值push到新建的Array里面

    var array = new Array();
    
    	array.push("${address}");
    

 

你可能感兴趣的:(JAVA,JSP)