var getImgSize = function (src) { var w, h; //............. return{ w:w, h:h }};var o = getImgSize('1.jpg');console.log(o) 查看完整描述