2

以下のコードの「this」と「element」は、どのような状況でセレクターではなくページを参照していますか?

$("a.tag")
    .each(
        function (index, element) {
           console.log("'this' is " + this);
           console.log("'element' is " + element);
        }
    )

要素の数だけ以下を生成します。

'this' is file:///C:/Projects/PlaceTag/PlaceTag/default.html# default.html:50
'element' is file:///C:/Projects/PlaceTag/PlaceTag/default.html# 
4

2 に答える 2