id有没有值都访问action
<input type="hidden" id="id" value=${id}>
var id=document.getElementById("id").value;
$("data_list").src="shareEmergencyGroup!doQuery.action?id="+id;
与上面的区别:
id有值都访问action,没值就是"shareEmergencyGroup!doQuery.action?id="+不访问action,
应为id直接有后台传过来的,没值就是+也是string类型
$("data_list").src="shareEmergencyGroup!doQuery.action?id="+${id};