PDOM virtual currency
var op=document.getElementById(" op"< br /></ script>< br /></ body>< br /></ html>
in addition to the United Kingdom, the currency of British Overseas Territories is also in pounds, and the exchange rate with pounds is fixed at 1:1
status of legal currency
e to historical factors, British monetary law is not unified and extremely complex
in England and Wales, banknotes are legal tender for unlimited legal compensation, and local governments such as the Channel Islands and the Isle of man also print banknotes equivalent to banknotes, which are also legal tender. However, in Scotland and Northern Ireland, there is no way to define the currency, so all the banknotes in these two places are actually exchange certificates for British coins
even in England, where legal currency is recognized, the so-called "legal currency" means that when the debtor deposits the full amount of such currency with the court, the creditor can not claim the debtor to pay the debt, but there is no restriction on the currency of daily transactions, because it is considered as freedom of contract<
the current pound
the current pound is also called "pound", one pound is equal to 100 new pence. Coins are divided into halfpenny (stopped circulation in 1985), 1p, 2p, 5p, 10p, 20p, 1K (25p, stopped circulation in 1990), 50p, 1p, 2p, 5p (called Krone after 1990). On the obverse of all the coins are the portraits of the British monarch. On the reverse, there are different patterns on the coins of different administrative regions, except for the currency value. However, no matter where the coins were minted, they are commonly used throughout the country. British banknotes are divided into 1 pound (stopped circulation in 1988), 5 pound, 10 pound, 20 pound and 50 pound. All banknotes with different values are printed with the image of the British monarch, serial number and currency value on the front and different figures of British celebrities on the back
in Britain, the queen is the most noble symbol, so the obverse of all pounds is Queen Elizabeth, and the reverse design varies according to the denomination of the coin. On the back is the portrait of George Stephenson, a 19th century British inventor, and on the left is the design of his steam locomotive; On the back is the portrait of Charles Dickens, a 19th century British writer. On the left is a cricket match held in 1836; On the back is the portrait of Michael Faraday, a 19th century British physicist and chemist. On the left is the scene of his speech at the Royal Society; On the back is a portrait of John hoblin, the first president of the Bank of England. On the left is the bank's doorman. On the back is his residence
issuers
England:
Bank of England
Scotland:
Bank of Scotland
the Royal Bank of Scotland
Clydesdale Bank
Northern Ireland:
Bank of Ireland
first trust bank
Northern Ireland
Ulster bank
Guernsey government Jersey government man government
History
old pound (LSD or & pound; Before the decimal system was carried out in 1971, one pound was equivalent to 20 shillings; And one shilling is 12 pence. In other words, a pound is 240 pence. At that time, coins were divided into:
farthing (a quarter of a penny, here the penny refers to the old penny, the same below). The last casting was in 1956 and stopped in circulation at the end of 1960.
Half Penny (half a penny, half a penny, last casting was in 1967 and stopped in circulation on August 1, 1969)
one penny (one penny, last casting was in 1967 and stopped in circulation on August 31, 1971)
three pence (three pence, quarter shilling, last casting was in 1967, Stop circulation on August 31, 1971)
six pence (six pence, half shilling, last minted in 1967, stop circulation in June 1980)
one shilling (one shilling, last minted in 1967, after decimal system of currency value in 1971, it can be used as 5p, at the end of 1990, it stopped circulation with the old version of the new 5p coins)
two shillings (also known as florin, 2 shillings, The last coinage was in 1967. After the decimal system was carried out in 1971, it can be used as 10 new pennies. On July 1, 1993, it stopped circulation with the old version of the new 10p coin.
half crown (half crore, i.e. 2 shillings and 6 pence, the last coinage was in 1967 and stopped circulation in 1970)
crown (one crore, i.e. 5 shillings, the last coinage was 1965 and stopped circulation in 1970)
假设元素#a
那么可以得到:
let p = document.getElementById('a');
let arr = p.childNodes;
get object by ID: document.getelementbyid (ID)
get the object array according to the class: document. Getelementsbyclassname (& quot; box");
get the object array according to tag: document. GetElementsByTagName (& quot; p");
get the object array by name: document.getelementsbyname (name)
there are many jQuery selectors. Generally, jQuery is used, and a large string of JS code is done with jQuery symbols
get the object according to ID: $( 39# ID');
get object array according to class: $(& quot box");
get the object array according to tag: $(& quot; p");;
get the object array according to the name: $(' input[name=" nw"] 39;);
1.getElementByID(id)
[UNK]过元素[UNK]ID访[UNK],[UNK][UNK][UNK][UNK]DOM Ņ基础[UNK]访[UNK]页面元素[UNK].
example:
< div id=" division"& gt; 测试 div>< br />< script language=" javascript"& gt;< br />var div=document.getElementByID(" division");< br />alert (div.nodeName); // 显示元素名
</ script>< br /> wbwbwbwbwbwbwbwbwbwbrowbrowbrowbrowbrowbrow>< div name=" george"" gt;& lt;/ div>< br />< input name=" george"" gt;& lt;/ div>< br />< script language=javascript>< br />var ge=document.getElementsByName(" george");< br />alert (georges.length); // 获取georges[UNK]数[UNK]div唔[UNK]果
</ script>< br />3.getElementsByTagName(tagname)
36820; 2020855; 20803; 36820eElementsByTagName(tagname)
36820; 2020855; 36820; 2020855and 20803; 00000020020020020020020020020020020020020020020020020020020035937;追,example:
< div id=" test"& gt; 123</ div>< br />< script type=" text/javascript"& gt;< br />var newdiv=document.createElement(" div");< br />var newtext=document.createTextNode(" A new div");< br />newdiv.appendChild(newtext) ;< br />document.getElementById(" test"). appendChild(change);< br /></ script>< br />[UNK]然,[UNK]面[UNK][UNK][UNK]document.getElementById(" test"). innerHTML=" 测试[UNK][UNK]" [UNK][UNK][UNK],遗憾[UNK][UNK],innerHTML[UNK]属[UNK][UNK]DOM.
2,removeChild(childreference)
移[UNK][UNK][UNK] div id=" father"" gt;& lt; div id=" child"" gt; A child</ div>> lt;/ div>< br />< script type=" text/javascript"& gt;< br />var childnode=document.getElementById(" child");< br />var removednode=document.getElementById(" father"). removeChild(childnode)
</ script>< br />3.cloneNode(deepBoolean)
227977; 22797; 22797bwbwbwbwbwbwbwbwbbrowbrow< br /> Example:
< body>< br />< span id=" lovespan"& gt; 熊掌[UNK][UNK]欲!& lt;/ span>< br /></ body>< br />< script type=" text/javascript"& gt;< br />var lovespan=document.getElementById(" lovespan"); // 获取id
var newspan=document.createElement(" span"); < br />var newspanref=document.body.insertBefore(newspan, lovespan);< br />newspanref.innerHTML=" 鱼[UNK]"< br /></ script>< br />三 DOM Element ul id=" mylist"& gt;< br />< that> [UNK][UNK]</ >< br />< that> [UNK][UNK][UNK]</ >< br />< that> [UNK];[UNK]</ >< br /></ ul>< br />< script>< br />var msg="& quot; ;< br />var mylist=document.getElementById(" mylist")< br />for (i=0; i<i> mylist.childNodes.length; i++){
was li=mylist.childNodes[i];< br /> msg+=li.innerText;< br />}
alert (msg);< br /></ script>< br />2,innerHTML
div id=" bbb"& gt;& lt; span id=" aaa"" gt; 我拉</ span>> lt;/ div>< br />< input type=button value=" [UNK]击看看 gt;< br />< script language=" javascript"& gt;< br />function change()
{
document.getElementById(" aaa"). innerHTML= " 修[UNK]修[UNK]"< br />}
</ script>< br />3,style
4 on the firstChild 返 wbwbwbwbwbwbwbwbwbbrowbrowbrowbrow; FONT
5,click()
执行元素的一次点击,可以用于通过脚本来触发onClick函数
let's start with CSS first
at first, most of the web pages were piled up with tables, and later, after the rise of firebox opera. There is a big problem with the compatibility of the web page. At this time, W3C comes. Most of the subsequent CSS problems are about div typesetting, so many beginners often can't tell the relationship between CSS and Div.
DOM is the element in HTML; div> & lt; p> & lt; a> & lt; img> They all belong to DOM elements, and their appearance is controlled by CSS, but JavaScript can dynamically change the attributes and appearance of DOM elements
if you don't understand, you can ask again
According to W3C DOM specification, DOM is the application programming interface (API) between HTML and XML. DOM maps the whole page to a file composed of hierarchical nodes. There are three levels: Level 1, level 2 and level 3. Since level 1 DOM only aims at mapping document structure, level 2 DOM has a broader orientation. By extending the original DOM, level 2 DOM adds support for mouse and user interface events (DHTML supports mouse and user interface events for a long time), scope, traversal (repeatedly executing DOM documents) and cascading style sheet (CSS) through object interface. At the same time, the core of DOM 1 is extended to support XML namespace
Level 2 DOM introces several new DOM moles to deal with new interface types:
DOM view: describes the interface for tracking various views of a document (before and after using CSS style to design documents)
DOM event: describes the event interface
DOM style: describes the interface based on CSS style
DOM traversal and scope: describes the interface for traversing and operating the document tree; According to DOM, each component in an HTML document is a node
DOM is defined as follows:
the whole document is a document node
each HTML tag is an element node
the text contained in the HTML element is a text node
each HTML attribute is an attribute node
comments belong to annotation nodes, and each node has a hierarchical relationship
all nodes in an HTML document form a document tree (or node tree). Every element, attribute, text, etc. in the HTML document represents a node in the tree. The tree starts at the document node and continues to branch out until all the text nodes at the lowest level of the tree
the following image represents a document tree (node tree):
please look at the following HTML document:
& lt; html>< br />< head>< br />< title> DOM Tutorial</ title>< br /></ head>< br />< body>< br />< h1> DOM Lesson one</ h1>< br />< p> Hello world!& lt;/ p>< br /></ body>< br /></ html>
all the above nodes have relationships with each other
every node except the document node has a parent node. For example, & lt; head> And & lt; body> The parent node of is & lt; html> Node, text node "Hello world!" The parent node of is & lt; p> Node
most element nodes have child nodes. For example, & lt; head> Node has one child node: & lt; title> Node& lt; title> The node also has a child node: the text node "DOM tutorial"
when nodes share the same parent node, they are peers. For example, & lt; h1> And & lt; p> They are peers because their parents are & lt; body> Node
a node can also have descendants. Descendants refer to all the children of a node, or the children of these children, and so on. For example, all text nodes are & lt; html> Node, and the first text node is & lt; head> A descendant of a node
nodes can also have ancestors. The ancestor is the parent of a node, or the parent of a parent node, and so on. For example, all text nodes can put & lt; html> Node as the ancestor node