<s:property value="@com.xzhe.site.bo.SiteTop@getTopHtml()" escape="false"/>
onchange="swapOrder(<s:property value='id'/>,this.options[this.selectedIndex].value)"
struts2直接用某个类的静态方法,获得html页面代码,把select当前值(change后的值)作为参数传给js
备忘 :oops:
<s:property value="@com.xzhe.site.bo.SiteTop@getTopHtml()" escape="false"/>
onchange="swapOrder(<s:property value='id'/>,this.options[this.selectedIndex].value)"