jquery.js:Uncaught TypeError: Cannot use 'in' operator to search
使用jquery each时报错
$.getJSON("/GetInfoApi/", { page: i }, function (json) { $.each(JSON.parse(json), function (index, array) { var product = "延误2小时赔付300元"; if (array.Product == "") { product = ""; } else { product = ""; } }); });
JSON.parse(json) 或者
$.parseJSON(json)