简体   繁体   中英

I'm selecting object incorrectly using jquery

Javascript


var rewardObj = myComp.getStage().createChildSymbol("reward", "Stage");
    $(rewardObj).css
    ({
        left:500,  //originSize[2].left,
        top:500  //originSize[2].top
    });

$(rewardObj).css does nothing and rewardObj.css throws error.

How would I select this object that I just made and move it over. I've used offset successfully in the past to move objects but this one won't budge. I'm thinking that I am selecting it wrong.

我认为您需要使用暴露的元素而不是对象

$(rewardObj.element).css()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM