Ajax : Why success displays 0?

前端 未结 10 1209
生来不讨喜
生来不讨喜 2021-01-01 19:02

I use ajax with jquery and when I tried to display the result in popup. Then alert always displays 0

success : function(results) { 
alert(result         


        
10条回答
  •  悲哀的现实
    2021-01-01 19:44

    Make sure the action_name is ok. If it's not found in functions.php you will get 0 as the result.

提交回复
热议问题