1
var arr = [{
value: 'a'
}];
var getTest = function() {
jQuery.each(arr, function(i, val) {
if (val.value == "a") {
return val;
}
});
}
alert(getTest().value);
jquery-3.1.0.js:3793 Uncaught TypeError: Cannot read property 'value' of undefinedjQuery.Deferred例外:無法讀取屬性
謝謝!!!很好!!! –