下面代码中的“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#