ajax 中 dataType 和 contentType 的区别

contentType: 告诉服务器,我要发什么类型的数据 dataType:告诉服务器,我要想什么类型的数据,如果没有指定,那么会自动推断是返回 XML,还是 JSON,还是 script,还是 String。

LayUI 表单自定义验证 / 校验

https://www.layui.com/doc/modules/form.html#verify