有點糾結(jié),在迭代里進(jìn)行比較,如果條件成立,顯示文字,不成立則顯示按鈕兩個比較的值都是為Long型的<s:iterator value="payTerraceList"> <tr> <td><s:property value="payTerraceName"/></td> <td> <s:if test="payTerraceId==payStyle2.payTerrace.payTerraceId"> <a style="color: red;">當(dāng)前綁定接口 ${payStyle2.payTerrace.payTerraceId}==${payTerraceId}</a> </s:if> <s:else> <input type="button" value="綁定此接口" class="smallbtn" id="upChoos2" onclick="binDingPayTerrace('${payTerraceId}','${payStyle2.payStyleId}')"> </s:else> </td> </tr> </s:iterator> 頁面顯示結(jié)果如下面附件所示<s:if test="payTerraceId==payStyle2.payTerrace.payTerraceId">我嘗試過<s:if test="%{payTerraceId==payStyle2.payTerrace.payTerraceId}">但是貌似結(jié)果一樣 直接替換成<s:if test='"13076052772170005"=="13076052772170003"'>就不成立了......
2 回答

慕雪6442864
TA貢獻(xiàn)1812條經(jīng)驗 獲得超5個贊
用<s:if test="#{payTerraceId==payStyle2.payTerrace.payTerraceId}">、<s:if test="payTerraceId eq payStyle2.payTerrace.payTerraceId"> 和<s:if test="%{payTerraceId eq payStyle2.payTerrace.payTerraceId}">試試,好久沒用了,記不太清了。希望有幫助
- 2 回答
- 0 關(guān)注
- 195 瀏覽
添加回答
舉報
0/150
提交
取消