来到这里
2007-11-26 13:01
267 查看
http://http://stackoverflow.com/questions/6942193/whats-the-difference-between-a-jquery-object-and-a-dom-element-difference-betw
I got an answer from above.
引用HTML != DOM != Javascript != jQuery, but they're all closely related.
The browser receives an HTML document from a web server, which is just text. The browser proceeds to parse this text into an internal structure that it can actually use to render the page visually. The DOM represents that internal structure a browser has of an HTML document. Javascript (or other methods) can be used to manipulate that DOM, which in turn changes the visual render of the page. A DOM node and a DOM element are just two names for the same thing. A DOM element represents a visual or functional element on the page which was created from the original HTML document.
jQuery now is a Javascript library that makes manipulating the DOM easier than with pure Javascript by offering a number of convenience shortcuts. A jQuery object is a Javascript object, which may or may not have anything to do with the DOM (usually it does). A jQuery object is a convenience wrapper around a DOM element in Javascript which is a method to manipulate the DOM which is a representation of the page which was created from an HTML file.
I got an answer from above.
引用HTML != DOM != Javascript != jQuery, but they're all closely related.
The browser receives an HTML document from a web server, which is just text. The browser proceeds to parse this text into an internal structure that it can actually use to render the page visually. The DOM represents that internal structure a browser has of an HTML document. Javascript (or other methods) can be used to manipulate that DOM, which in turn changes the visual render of the page. A DOM node and a DOM element are just two names for the same thing. A DOM element represents a visual or functional element on the page which was created from the original HTML document.
jQuery now is a Javascript library that makes manipulating the DOM easier than with pure Javascript by offering a number of convenience shortcuts. A jQuery object is a Javascript object, which may or may not have anything to do with the DOM (usually it does). A jQuery object is a convenience wrapper around a DOM element in Javascript which is a method to manipulate the DOM which is a representation of the page which was created from an HTML file.
相关文章推荐
- MySQL 之父的来华奇妙之旅:10 次来中国,居然有 4 次来到了这里
- 第一次来到这里啊,求罩啊
- Gun N' Rose:欢迎来到这里,我们在这里安家啦~
- 第一天来到这里,分享是学习的另一种方式!
- 来到了CSDN,希望这里能见证自己的成长
- 来到这里的第一天
- 纽约客封面故事:欢迎来到「黑暗工厂」,这里是由机器统治的世界
- 欢迎来到区块链动物世界,这里有迷恋猫、莱茨狗、加密兔
- 其实我是无地可去才来到这里。
- 来到这里
- 第一次来到这里
- 紫日剑来到这里注册了个新账号
- 今天来到了CSDN这里,感觉很不错。
- 因为unity 3d,我来到了这里
- 哈哈我也来到了这里
- 发现自己好久没有来到这里了
- 来到这里!
- 程序加载 控件 最后来到了这里
- 今天来到这里
- 来到这里,纯属必然。