ajax中dataType和contentType的区别

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

LayUI表单自定义验证/校验

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