Getting TypeError: invalid 'in' operand obj while fetching data using ajax

后端 未结 3 1635
死守一世寂寞
死守一世寂寞 2020-12-19 05:58

Below is my ajax call

 $(document).ready(function() {
     $(\"#blog\").focusout(function() {
         alert(\'Focus out event call\');
         alert(\'hell         


        
3条回答
  •  别那么骄傲
    2020-12-19 06:16

    Mention a dataType attribute in your ajax call.It consider text by default.That's why not able to iterate on result

    dataType:'json'
    

    Because your result should be array or json

提交回复
热议问题