我从mysql数据库获取ID和类别名称。
当我警告结果时,我得到:
[{"id":"197","category":"Damskie"},"id":"198","category":"M\u0119skie"}]
(这是对象吗?)
丹斯基
M \ u0119skie
var arrofobject = [{"id":"197","category":"Damskie"},{"id":"198","category":"M\u0119skie"}]; $.each(arrofobject, function(index, val) { console.log(val.category); });