jquery ajax returns error but is success

前端 未结 1 2056
天涯浪人
天涯浪人 2021-01-05 18:05

I have the following JS

function change_ajaxarea1(){
navigator.notification.activityStart();
$(\'#ajaxarea1\').load(\'http://server.net/droiddev/backbone1/in         


        
相关标签:
1条回答
  • 2021-01-05 18:43

    You need to return json from controller, as this is what jQuery expects. You can return i.e.

    { success : true }
    

    Or you could set html as data type (maybe it will work without content but you may need to return something)

    0 讨论(0)
提交回复
热议问题