套页面的时候,HTML能显示,实际用idea调试的时候碰到问题,mark下
之后发现这其实Thymeleaf 只解析严格XML格式的文档的原因,参见后一篇链接解决方法
http://blog.csdn.net/error/404.html?from=http%3a%2f%2fblog.csdn.net%2fqq_20940417%2farticle%2fdetails%2f75125379
1、 关于下拉选择select的option默认的selected
错误写法:
<option selected> --请选择期限-- </option>
正确写法:
<option selected="selected"> --请选择期限-- </option>
2、类似这些不完整的 thymeleaf也不认<input type="hidden" name="redirect" value="">
正确的:
<input type="hidden" name="redirect" value=""/>3、关于script 中的 注释掉的不闭合的也会报错
例如: 元素类型 "img" 必须由匹配的结束标记 "</img>" 终止。<script>...
/*if (errorCount > 5) {layer.open({ title: '<img src="' + location.origin + '/Plugins/layui/images/face/7.gif" alt="[害羞]">输入验证码', type: 1,...
return false;*/
...
</script>