Immer TypeError: 'invalid ' in' operand obj beim abrufen von Daten mithilfe von ajax

Unten ist mein ajax-call

 $(document).ready(function() {
     $("#blog").focusout(function() {
         alert('Focus out event call');
         alert('hello');
         $.ajax({
             url: '/homes',
             method: 'POST',
             data: 'blog=' + $('#blog').val(),
             success: function(result) {
                 $.each(result, function(key, val) {
                     $("#result").append('<div><label>' + val.description + '</label></div>');
                 });
             },
             error: function() {
                 alert('failure.');
             }
         });
     });
 });

Ich bin immer " TypeError: 'invalid ' in' operand obj ' error in meiner Konsole

Vielen Dank im Voraus

  • sind Sie immer alert..?
  • Dein code ist, fehlt eine schließende });. Ist dieser schlechte Schnitt-und-einfügen oder die zugrunde liegende Ursache?
InformationsquelleAutor user2621586 | 2013-08-27
Schreibe einen Kommentar