<if test=" name=='你好' "> ... <if> 这样会有问题,换成 <if test=' name=="你好" '> ... <if> 我是这样解决的 【转载】https://www.cnblogs.com/andysd/p/3738197.html