struts2标签中字符串及字符替换
10172 点击·0 回帖
![]() | ![]() | |
![]() | 1.替换内容为单个字符: <s:property value="strValue1.replace('s', 'A')" /> 2.替换内容为多个字符: <s:property value='strValue2.replace(\"zz\", \"BB\")'/> <td class="tableList"><s:property value="device.replace(\"0\",'Touch智控').replace(\"1\",'鼠标').replace(\"2\",'多屏互动').replace(\"3\",'遥控器')"/> </td> | |
![]() | ![]() |