<if test=" ids == 1 "> or <if test=" ids == '1'"> 都不行 最后百度到 如下写法 <if test=" ids == '1'.toString() "> 成功