簡體   English   中英

Aptana Studio:jQuery代碼完成/輔助變量

[英]Aptana Studio: jQuery code completion/assist for variables

我在最新的Aptana插件(3.4)中使用jQuery的代碼完成/輔助功能時遇到問題。 它似乎無法推斷類型:

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

當嘗試為由$(this)創建的變量獲取代碼完成時,我沒有任何幫助:(您對如何解決此問題有任何建議嗎?

答案是:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM