從他們的官方文檔:香菜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
如果我想發送多個值,該怎麼辦? –