JavaScript Basics and jQuery Basics

setProperty(),getPropertyValue(),removeProperty()
_p1.style.setProperty("font-size","50px");

It should be noted that when using property-related methods, the property name is the same as that defined in the CSS style. When using the style.xxxx method directly, it is necessary to convert the hyphen symbol into the camel case naming method.

type: the name of the event, case sensitive

listenerFunc: listener function, this function will be called when an event occurs

Element node's event property

The Element node object has an event attribute, and a listener function can also be specified.

jQuery objects and DOM objects

A jQuery object is an object produced by wrapping a DOM object with jQuery.
jQuery objects are unique to jQuery. Have methods in jQuery.

jQuery's philosophy is: write less, do more.

  window.onloadYou must wait for all the content in the page to be added before it can be executed.

(document).read()It is executed after all the DOM structures in the web page are drawn, and the things associated with the DOM elements may not be loaded.

jQuery selectors

https://www.kancloud.cn/bizzbee/java103/537822   




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325483516&siteId=291194637