jquery给height拼接动态变量
var sizeLength = "${list.size()}"; if(sizeLength==''){ sizeLength=0; } sizeLength=400*sizeLength+200+"px;"; sizeLength="height:"+sizeLength; // parent.document.getElementById("Main${toolId}").style.height="+sizeLength+"; parent.$('#Main${toolId}').attr('style',sizeLength);