struts2中if標籤中字符串比較的正確寫法

錯誤寫法: <s:if test="aStringProperty == 'A'"> Why doesn't this work when myString is equal to A? </s:if> 正確寫法: <s:if test='aStringProperty == "A"'> This works!</s:if><s:if test="aStringProperty == \"A
相關文章
相關標籤/搜索