// 错误的写法 <if test="domain.contains('.')"> // 正确的写法 <if test='domain.contains(".")'> 看出差别了没 如果对你有帮助,点个赞