$(this).position.left returns empty



有人能解释并帮助我为什么$(this).position.left是空的吗?

$('#wrapper img, #beschrijving').click(function (obj) {
    var posLeft = $(this).position.left;
    $('#wrapper').animate({
        marginLeft: '-' + posLeft + 'px'
    }, 500);
});

脚本的其余部分是有效的,因为如果我用一个数字填写posLeft,它就会完成它应该做的事情。我希望有人能帮我。

.position()是一个函数,该函数将返回一个包含left属性的对象

$(this).position().left;

$('#wrapper img, #beschrijving').click(function (obj) {
    var posLeft = $(this).position().left;
    $('#wrapper').animate({
        marginLeft: '-' + posLeft + 'px'
    }, 500);
});