首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

数据显示有关问题

2012-03-23 
数据显示问题求助JSP有如下代码tr height30td width110 alignrightfont colorred*/fon

数据显示问题求助
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标签标示出来 怎么写?

[解决办法]
试试

<s:date name="dealBonusRule.effectiveMonth" format="yyyy-MM" />

热点排行
Bad Request.