摘要:
2014.4.12 是T的广州站,就在本校,很方便。考前一两天,临时抱佛脚,看着HTMLdog上的网页知识。就算考前,还在懊悔自己为什么不好好利用清明假期,多看点,看多点?哎,哎。。 谁知道一拿到试卷就傻眼了,原来考基础的知识,这几乎都木有怎么准备啊。是老天爷给我苟延残喘的时间吧。好吧,只能靠着... 阅读全文
摘要:
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.Real life object:propertiese & abilitiesJS object:a collection of named properties & methods=functionvariables hold objectsdot syntax access properties & methods .2.nested object 阅读全文
摘要:
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 阅读全文