JavaShuo
欄目
標籤
jq裏面用this和用$(this)有什麼區別
時間 2021-01-21
欄目
JavaScript
简体版
原文
原文鏈接
1、表示對象不同:this表示的是javascript提供的當前對象,$(this)表示的是用jquery封裝候的當前對象。 2、過程不同:this對象可以直接用this.style修改樣式,$(this)可以使用jquery提供的方法訪問樣式。 比如this.style.display="none"在jquery中可以用$(this).css(「display」,「none」)實現。 擴展資料:
>>阅读原文<<
相關文章
1.
Jquery裏面的$(this)和this, 有什麼區別
2.
js裏面的this和$(this)的區別
3.
Android中this.*與*.this還有*.class的區別是什麼?
4.
$("this") $(this) 區別
5.
JQuery this 和 $(this) 的區別
6.
jquery $(this) 和this的區別
7.
this 和 $(this) 的區別
8.
Javascript的this用法及jQuery中$this和$(this)的區別
9.
jquery中this與$(this)的用法區別
10.
js中 this與that , let 和var有什麼區別
更多相關文章...
•
爲什麼使用 XML Schemas?
-
XML Schema 教程
•
爲什麼使用 Web Services?
-
Web Services 教程
•
使用阿里雲OSS+CDN部署前端頁面與加速靜態資源
•
適用於PHP初學者的學習線路和建議
相關標籤/搜索
this+call
c++this
this#6
with+this
1+this
2.this
by..this
31.this
1.this
3.this
JavaScript
XLink 和 XPointer 教程
PHP教程
MySQL教程
應用
面試
阿里雲
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
跳槽面試的幾個實用小技巧,不妨看看!
2.
Mac實用技巧 |如何使用Mac系統中自帶的預覽工具將圖片變成黑白色?
3.
Mac實用技巧 |如何使用Mac系統中自帶的預覽工具將圖片變成黑白色?
4.
如何使用Mac系統中自帶的預覽工具將圖片變成黑白色?
5.
Mac OS非兼容Windows軟件運行解決方案——「以VMware & Microsoft Access爲例「
6.
封裝 pyinstaller -F -i b.ico excel.py
7.
數據庫作業三ER圖待完善
8.
nvm安裝使用低版本node.js(非命令安裝)
9.
如何快速轉換圖片格式
10.
將表格內容分條轉換爲若干文檔
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
Jquery裏面的$(this)和this, 有什麼區別
2.
js裏面的this和$(this)的區別
3.
Android中this.*與*.this還有*.class的區別是什麼?
4.
$("this") $(this) 區別
5.
JQuery this 和 $(this) 的區別
6.
jquery $(this) 和this的區別
7.
this 和 $(this) 的區別
8.
Javascript的this用法及jQuery中$this和$(this)的區別
9.
jquery中this與$(this)的用法區別
10.
js中 this與that , let 和var有什麼區別
>>更多相關文章<<