摘要:
1.jQuery is far and away the most popular DOM libraryUsed to allow modification and control of the DOMAmore uniform way of interacting with the DOM2.A... 阅读全文
摘要:
1.Scope=variable visibilitya variable’s scope is the part of your code that can access and modify that variable.JavaScript has function scopeGlobal variables — that is, variables that can be read and modified anywhere in your applicationit’s best to limit the scope of a variable as much as possible, 阅读全文
摘要:
1. JSON(JavaScript Object Notation)A set of text formatting rules for storing and transferring data in a machine and human readable way.The object literal syntax of JavaScriptA totally different language2.Use JSONconverts an object into a JSON stringjsonString becomes {"make": "McLare 阅读全文
摘要:
1.load new content into a page without a full reloadXML HTTP Request (XHR) To retrieve new content for a pageAJAX standing for Asynchronous JavaScript and XML.2.XML HTTP Requestcreate a new XMLHttpRequest requestspecify a callback functionspecify a callback function(specify a callback function,URL t 阅读全文
摘要:
event-driven :waiting for and reacting to events2.page loads, user interacts (clicks, hovers, changes),triggered manually3.A group of the things needed to listen for an event; the callback function, an element and the call to listen for an event:addEventListener is a method found on all DOM elements 阅读全文
摘要:
1.DOM(The Document Object Model)Away to manipulate the structure and style of an HTML page.It represents the internals of the page as the browser sees it, and allows the developer to alter it with JavaScript.2.HTML is an XML-like structureTo access the DOM from JavaScript, the document object is use 阅读全文
摘要:
1.Lists of any kind of data2.Index to retreve an element from the array 03.[].length;.pop()/push(' ');=remove/add elements from the end of the array 阅读全文
摘要:
1.Function=Reusable blocks of codePassed arguments & return a valuesave functions as the value of a variablecall a function using this variable & a pair of parentheses=invoking 阅读全文