标签:view end str setattr ble attribute from 添加 return
StringBuffer sbstr=new StringBuffer("<table id=‘tabe>”;);
String tablehtml= "<tr><td>"+str1+"</td>" +
"<td>"+str2+"</td>"+"<td>"+str3+"</td></tr>";
sbstr.append(tablehtml);
sbstr.append("</table>");
dmp.put("tablehtml", sbstr.toString());
this.setAttributeFromDmp(dmp);
return view;
用append拼接页面元素,当前填充为一个table,在后台处理更加的灵活,循环遍历更容易控制,也可以在此添加id和name不影响前台js的处理。
标签:view end str setattr ble attribute from 添加 return
原文地址:http://www.cnblogs.com/liu95/p/7363818.html