话说前端46-jQuery

2023-05-27 0 432

话说前端46-jQuery
话说后端46-jQuery
01:45源自LearningYard辅仁

撷取浓厚兴趣,散播欢乐,快速增长所见所闻,遗留下幸福!

亲爱的您,这儿是LearningYard新辅仁。

那时小编入我们增添话说后端46-jQuery,结语的出访。
Share interests, spread happiness, increase knowledge, and leave a good legacy!
Dear you, this is The LearningYard Academy.
Today Xiaobian brings you The knowledge set 46| the lingo model of the maximum coverage model, welcome to your visit.
JQuery 简述:jQuery是两个加速、简约的JavaScript库,在那个复本,PCB了许多事先表述好和测试阶段采用。Query浏览:官方网站:https://jquery.com/点选Download,找出相关联的版镜像,点选,holds实用工具。
Overview of JQuery: jQuery is a fast and concise JavaScript library. In this library, many predefined functions are encapsulated, such as animate, hide and show, such as getting elements. There are two types of jQuery version: compressed version: omitted writing, which is not conducive to reading and small in size. The uncompressed version used in the project online: complete writing, easy to read and large in size. Used in learning and development stages. Query Download: official website: https://jquery.com/ Click Download to find the corresponding version link, click, and right-click Save As.
JQuery 选择器:
JQuery selector:
总结: 就是和 css 的 选择器基本是一样的,但是要加引号
Summary: It is basically the same as the selector of css, but with quotation marks.
JQuery 入口函数:为了防止文档在完全加载(就绪)之前运行jquery代码,即在DOM加载完成之后才可以对 DOM 进行操作 采用ready函数.推荐采用 简写方式。
JQuery entry function: In order to prevent the document from running jquery code before it is fully loaded (ready), that is, the ready function can only be used after the DOM is loaded. Shorthand is recommended.
话说前端46-jQuery
onload 和 ready:onload被成为javaScript的入口函数,reday被成为jQuery的入口函数
onload和ready的区别:window.onload 事件是等到所有内容,包括外部图片之类的文件加载完后,才会执行。ready 是在 html 所有标签(DOM)都加载之后,就会去执行。window.onload 事件只能执行一次,再写就会覆盖。ready 是可以执行多次,并且不会被覆盖。

Onload and ready:onload are the entry functions of javaScript, and reday is the entry function of jQuery.

The difference between onload and ready: the window.onload event will not be executed until all contents, including files such as external pictures, are loaded. Ready is executed after all html tags (DOM) are loaded. The window.onload event can only be executed once, and then it will be overwritten. Ready can be executed multiple times and will not be overwritten.

JQuery 选择器:
JQuery selector:
话说前端46-jQuery
那时的撷取就到这儿了。如果您对那时的文章有什么独特的想法,欢迎评论留言,让我们相约明天,祝您那时过得开心欢乐!
Thats it for todays sharing. If you have any unique ideas for todays article, please leave a comment, let us meet tomorrow, I wish you a happy day!

翻译:google翻译

本文由LearningYard新辅仁原创,部分图片文字源自网络,如有侵权请联系。

文字&排版|李仕阳
审核|李焕
举报/反馈

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务