Why isn't this simple bit of jQuery getJSON working in IE8?
问题 I've got a very standard AJAX request: $.getJSON('/products/findmatching/38647.json', {}, function(JsonData){ var tableHtml = ''; var x; for (x in JsonData.matchingProds) { var matchingProd = JsonData.matchingProds[x]; var buyMessage; if ( x == 0 ) { buyMessage = 'Buy Cheapest'; } else { buyMessage = 'Buy from this shop'; } tableHtml = tableHtml + '<tr><td><img height="40" src="' + matchingProd.img_url + '" alt="' + matchingProd.name + '" /></td> \ <td><a href="' + matchingProd._page_url + '"