例子有点憨,将就看

<choose>
  <when test="id = 1">
  and id = 2
  </when>
  <when test="id = 2">
  and id = 3
  </when>
  <otherwise>
  and id is null
  </otherwise>
</choose>

choose中的when会不会匹配多个? 不会,从上到下判断,匹配到一个之后,其他的就不会匹配了

相关文章:

  • 2022-02-07
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-11-08
猜你喜欢
  • 2022-01-24
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案