简体   繁体   中英

Aptana Studio: jQuery code completion/assist for variables

I have problems using the code completion/assist for jQuery in the latest Aptana plug-in (3.4). It doesn't seem to be able to infer types:

(function($) {
    $('p .test').each(function() {
        var $this = $(this);
        $(this).*DOES WORK*
        $this.*DOESN'T WORK*
    });
}(jQuery));

When trying to get code completion for a variable created out of $(this), I don't get any assist :( Do you have any advice how to get this solved?

Here is the answer:

(function($) {
    $('p .test').each(function() {
        var ele = $(this);
        $ele = $(this);
        $(this).*DOES WORK*
        ele.*DOES WORK*
        $ele.*DOES WORK*
    });
}(jQuery));

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