Discover art of multiprocessor programming, include the articles, news, trends, analysis and practical advice about art of multiprocessor programming on alibabacloud.com
It took a weekFinally, I read "JS + DOM programming art" separately.This is the fourth book on JS in the last one and a half months.Others are "JS completely self-taught manual", "Return of the JS King", and "JS Programming Tutorial".The reason why I went to see this is to read a post on csdn looking forward to JS, which is very recommended.
Let's talk about it.
The first chapter:1.DOM: is a set of methods for abstracting and conceptualizing the content of a document, which is an API.2.W3C definition of DOM: An excuse that is independent of the system platform and programming language programs and scripts can dynamically access and modify document content, structure, and style through this interface.3.Ajax: Asynchronous data transmission, H5 4.JavaScript Basic Syntax:Multiline comment "/* * *"
After reading this book today, I finished the last comprehensive example. To tell the truth to gain a lot, finally understand what the front-h5 specifically doThe more you learn, the more ignorant it seems, this is really a truth. Post-planning:1, CSS + DIV layout In-depth understanding, key combat2, JavaScript advanced programming that book thoroughly understand3, background and front-end data exchangeWhy I like technology, it's weird:-)Javascript-do
value (number), Boolean (Boolean) are scalar (scalar) in this book is just a brief introduction.5. An array array is a set of values represented by a variable, and each value in the collection is an element of the array.The number of array elements is the length of the array, and the element to be added to the array is called padding (populating).Declaration method: var beatles = Array (number); var beatles=[];var beatles = new Array ();padding: array[index]=element; array elements can be of va
JavaScript and DOM, we can completely collect that information and insert it into the document using the SUP element.List of shortcut keysThe AccessKey property can associate an element (such as a link) with a specific key on the keyboard. This is useful for people who can't or don't like using a mouse to browse the Web.In general, in browsers for Windows systems, the use of shortcut keys is to press the ALT key and specific keys at the same time on the keyboard, and in browsers for Mac systems
Read JavaScriptDOM programming art notes. For more information, see. 1. Obtain the next element of the current element.
The Code is as follows:
Function getNextElement (node ){If (node. nodeType = 1 ){Return node;}If (node. nextSibling ){Return getNextElement (node. nextSibling );}Return null;};
2. Add the page loading method for js externally introduced
The Code is as follows:
Function addLoadEvent
This article mainly introduces the JavaScript image library of reading notes in JavaScriptDOM programming Art. if you need it, you can refer to the following two methods to change the src attribute of the image:
1. the setAttribute method is an integral part of "level 1st DOM". it can be used to set any attribute of an element node.
2, element. src = source; this is the method before "level 1st DOM" appear
This article mainly introduces the DOM basis of Reading Notes in JavaScriptDOM programming art. For more information, see
DOM
DOM: Document Object Model;
Node
Element Node: DOM atoms are element nodes.,
,
And so on. An element can contain other elements. The only element that is not included in other elements isElement
Text node: in XHTML documents, text nodes are always contained in element nodes.
functiondisplaycitations () {//get all references varQuotes = document.getElementsByTagName ("blockquote"); //Traversal Reference for(vari=0; i){ //If there is no cite property, continue looping if(!quotes[i].getattribute ("cite"))Continue; //Save cite property varurl = quotes[i].getattribute ("cite"); //gets all the element nodes in the reference varQuotechildren = Quotes[i].getelementsbytagname ("*"); //If there are no element nodes, continue looping
4th: JavaScript Picture LibraryMultiple pictures of the problem, think about doing an example:How event handlers work: Once an event occurs, the corresponding JS code is executed once the element has been added to the event handler function. The called JS code can return a value that will be passed to the event handler. Generally returns TRUE or FALSE. True event handler function: event occurs false: Event not seenNodetype:1: Element Node 2: Attribute node 3: text nodeNodevalue:element[0].nodeva
GetAttribute SetAttribute Get and Set propertiesGetAttribute Get Properties:Syntax: Object.getattribute (attribute); This method does not belong to the Document object, so it cannot be called with the Document object, but only through the element node object; The setattribute is the same;For example, var paras = document.getelementsbytagname (' P ');Alert (Paras[0].getattribute (' title '))SetAttribute modifying attributes;Object.setattribute (Attribute,value);Example: var shopping = document.g
Fourth Note:How to make an a tag do not jump:DOCTYPE HTML Public "-//w3c//dtd XHTML 1.1//en" "Http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">HTMLxmlns= "http://www.w3.org/1999/xhtml"Xml:lang= "en">Head> Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /> title>Image Gallerytitle> Head>Body> H1>SnapshotsH1> ul> Li> ahref= "Http://www.baidu.com"title= "A Fireworks display"onclick= "return false;">Click to jumpa>//implementation does not jump Li> Li> ahref=
The following is only for individual reading notes, to record the use of pages. Original address: HTTPS://GITHUB.COM/OA414/OBJC-ZEN-BOOK-CN thanks! One, one case problemRefer to the previous single abuse article.Http://www.cnblogs.com/yaann/p/4661909.htmlSecond, class clustersThird, attributeIv. assertionsThrows an exception if the condition is true.Five, the equality ofLiu, CategoriesEightuse of pragmaNine, Block10, Self's circular reference 11. Multiple DelegatesB17-Zen and OBJECTIVE-C
Pointer programming art (2) pointer and string
The pointer variable size is 4 bytes. Let's look at an example:
#include
It is found that the address distance between two data types is 8, which is exactly the size of double data (the address gap is the size of the Data Type pointed to by the pointer variable), but it is not the size of the pointer type variable, in fact, we can see that this a
[Programmer programming art] Learning Record 2: Circular shift of left-rotated strings
GCD algorithm: (moving phase division/Euclidean Algorithm)GCD is the algorithm used to calculate the maximum public approx. It is the first algorithm of taocp.GCD algorithm flow:First, given two integers m, n (m greater than or equal to N) if less than then directly exchange and then process① Calculate the remainder r = m
«How to manually attach a disk group under VCs | blog homepage | reprint a bitter humor-buy a house»
Website related articles | related articles
Reprinting the book "deep dive into Oracle"
Fun reading in the fifth phase of Library Reading
Wei Shu is colorful, Yan Yu xi zi wei Wen youhua, Xiu Yu Bai Yu
Two-month introduction to Oracle
Your care makes me warm
Several books bought today
Finally, I received the itpub T-shirt.
Oracle entry book recommendation
Yesterday, I received Tom's n
JavaScript library for Reading Notes in JavaScript DOM programming art, javascriptdom
There are two ways to change the src attribute of an image:
1. The setAttribute method is an integral part of "level 1st DOM". It can be used to set any attribute of an element node.
2, element. src = source; this is the method before "level 1st DOM" appears, and it is valid now.
The advantage of "level 1st DOM" is its por
ConcurrenthashmapConcurrenthashmap is composed of the segment array structure and the HASHENTRY array structure.A concurrenthashmap contains a segment array, the structure of segment is similar to HashMap, is an array and a list structure, a segment contains a hashentry array, Each hashentry is an element of a linked list structure, and each segment guardian is an element of the Hashentry array, and when the data for the Hashentry array is modified, it must first obtain its corresponding segment
smooth degradation and progressive enhancement principle smooth degeneration: If you use JavaScript scripts correctly, you can allow visitors to navigate your site without the support of JavaScript in their browsers. This is called stationary degradation (graceful degradation), which means that although some functions are not available, But the most basic operation can still be completed smoothly. progressive enhancement: The Web pages that were created in accordance wit
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.