1.EL获取单值
<title>${title}</title>
2.EL获取HashMap
后端绑定
Map<String,String> m=new HashMap<String,String>();
m.put("1", "111");
m.put("2", "222");
ModelAndView mv = new ModelAndView();
mv.addObject("title", "demo");
mv.addObject("m", m);
mv.setViewName("demo");
return mv;
前端获取
${m["1"]}