JSP有如下代码
<tr height="30">
<td width="110" align="right">
<font color="red">*</font>
年月:
</td>
<td width="150" align="left">
<s:label name="dealBonusRule.effectiveMonth"></s:label>
</td>
</tr>
假设dealBonusRule.effectiveMonth取得值是201004 是字符类型
但是我要在页面中显示为 2010-04 我想通过JS或者struts2标签标示出来 怎么写?
<tr height="30">
<td width="110" align="right">
<font color="red">*</font>
年月:
</td>
<td width="150" align="left">
<s:label name="dealBonusRule.effectiveMonth"></s:label>
</td>
</tr>
假设dealBonusRule.effectiveMonth取得值是201004 是字符类型
但是我要在页面中显示为 2010-04 我想通过JS或者struts2标签标示出来 怎么写?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货