色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

JQuery this 和 $(this) 的區(qū)別

What is "this"?
In many object-oriented programming languages, this (or self) is a keyword which can be used in instance methods to refer to the object on which the currently executing method has been invoked.
復(fù)制代碼 代碼如下:
$("#textbox").hover(
function() {
this.title = "Test";
},
fucntion() {
this.title = "OK”;
}
);

這里的this其實(shí)是一個(gè)Html 元素(textbox),textbox有text屬性,所以這樣寫(xiě)是完全沒(méi)有什么問(wèn)題的。
但是如果將this換成$(this)就不是那回事了,Error 主站蜘蛛池模板: 寿宁县| 务川| 凉城县| 九龙县| 修武县| 汾西县| 紫金县| 邯郸县| 乾安县| 宿迁市| 海伦市| 西乡县| 三明市| 手游| 昭苏县| 兴业县| 丽江市| 三门峡市| 化德县| 崇州市| 合肥市| 荣昌县| 吕梁市| 佛山市| 张家川| 武汉市| 海口市| 阆中市| 江口县| 大关县| 鄂伦春自治旗| 张家川| 那曲县| 施甸县| 元阳县| 乐安县| 大洼县| 合山市| 方正县| 师宗县| 汝南县|