- How the browser renders the document
- Receives the data (bytes) from the server.
- Parses and converts into tokens (<, TagName, Attribute, AttributeValue, >).
- Turns tokens into nodes.
- Turns nodes into the
DOMtree.
- Builds
CSSOMtree from thecss rules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| recordVideoPlayHistory('testVideo', { | |
| "EmailOrUserName": "[email protected]", | |
| "WatchTokenOrPwd":"ayr1", | |
| "LoginToken": "C52AC508-8778-E5FC-95F3-35DDDB21BBC1", | |
| "UserType": 1 | |
| }, guid(), 7); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var i; | |
| for(let i = 0; i< 1; i++){ | |
| //let i = 12; | |
| //var i = 13; | |
| //i = 20; | |
| } | |
| //以上写法有几种会报错。原因是为什么? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Write a function called strictEquals(a, b) that returns the same value as a === b. Your implementation must not use the === or !== operators. | |
| function strictEquals(a, b){ | |
| if (Number.isNaN(a) || Number.isNaN(b)){ | |
| return false; | |
| } | |
| //+0/-0 | |
| if (isEqual(a, -0) && isEqual(b, +0) || isEqual(a, +0) && isEqual(b, -0)){ | |
| return true; | |
| } | |
| return Object.is(a, b); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //different with ==, object.is not implict convert | |
| //object is 判断 NaN/+-0 相等行为和 === 不同 | |
| if (!Object.is) { | |
| Object.is = function(x, y) { | |
| // SameValue algorithm | |
| if (x === y) { // Steps 1-5, 7-10 | |
| // Steps 6.b-6.e: +0 != -0 | |
| return x !== 0 || 1 / x === 1 / y; | |
| } else { | |
| // Step 6.a: NaN == NaN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function test(){ | |
| return 'hi, Notion'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"lastUpload":"2017-02-15T14:00:53.626Z","extensionVersion":"v2.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| my Atom Config Back Up |
NewerOlder
