从他们的官方文档:香菜AJAX发送POST变量
Custom ajax validation made simple.
parsley-remote-method="POST" to change default GET call.
parsley-remote-datatype="jsonp" if you make cross domain ajax call and expect jsonp
Parsley will accept these valid returns with a 200 response code: 1, true, { "success": "..." } and assume false otherwise
You can show frontend server-side specific error messages by returning { "error": "your custom message" } or { "message": "your custom message" }
但是如果我想送一个变量,POST请求我能做些什么?
我想如果你把一个名字属性放在你的输入中,一个名字相同的变量和输入值将与发送请求一起发送。 – MamaWalter
如果我想发送多个值,该怎么办? –