1
用wordpress ajax插件响应-1和0有什么区别?wordpress插件ajax调用响应-1和0之间的区别
http://codex.wordpress.org/AJAX_in_Plugins
的文档状态:
Error Return Values
If the AJAX request fails when the request url is wp-admin/admin-ajax.php, it will return either -1 or 0 depending on the reason it failed.
但是,这是一个非常基本的答案,这并不说明什么情况下会引发两种类型的错误。任何人有任何想法?