在xml中起初我是这样写的,
<if test="academy != '管理' and academy != '校'">
然后控制台一直报错,
删删改改不知道为什么报错,
到最后将代码改成这样
<if test='academy != "管理" and academy != "校"'>
成功了!
总结:xml真优秀,可能是xml不知道单引号是字符串吧!!!
在xml中起初我是这样写的,
<if test="academy != '管理' and academy != '校'">
然后控制台一直报错,
删删改改不知道为什么报错,
到最后将代码改成这样
<if test='academy != "管理" and academy != "校"'>
成功了!
总结:xml真优秀,可能是xml不知道单引号是字符串吧!!!