JavaScript learning record fourteen

... create objects three ways: //1 literal way //2 call the constructor of the system //3 Custom constructor mode * 1. Open space storage object * 2. Set this to the current object * 3. Set the values ​​of properties and methods * 4. Return the this object to the // instance object Var per1...


Javascript puts the difference between head and body

... (w3c is recommended to be placed in the head tag) JavaScript where the script is placed JavaScripts in the HTML body section will be executed when the page is loaded. JavaScripts in the HTML head section will be executed when called. —————————————————————————— JavaScript should be...


After the Plupload node changes, the upload event is no longer triggered.

... After the upload is successful, the upload element is moved backwards, the location changes, and the file selection box is not opened when clicked again, and the original position of the element can be clicked. At this time, you need to use uploader.refresh() after uploading...


Object literal instead of switch

... In fact, using switch is not a big problem, but the code looks cumbersome. Each case can't be enclosed in braces ( { } ). It needs a break to terminate. Our JavaScript programming habits, using curly braces to indicate that the code block does not match. Let's compare the following two...


Adding the Token

... websocket protocol to the websocket borrows the HTTP protocol during the handshake phase, but there is no way to modify the request header in the JavaScript websocketAPI. var token='dcvuahsdnfajw12kjfasfsdf34' 1 send Send parameter var ws = new WebSocket("ws://" + url + "...


react technology stack Practice (1)

... article from Netease cloud community of: background Wang Yang recently developed a new test platform AB, thinking the next just to use react technology development. Pre-technical preparation first encountered a concept, redux. This product is really difficult to understand, the general...


Beginner Vue------ Use Vue-cli to build the project

... vue-cli is an officially released vue.js project scaffolding. You can use vue-cli to quickly create a vue project. The GitHub address is: https:// Github.com/vuejs/vue-cli 1. Install node.js First install the node environment, you can go to the official website to download the...


Vue jump external link

... When we are in the file, if it is an internal jump in the vue page, it can be implemented with this.$router.push(), but if we also use this method to jump to the external link, Will report an error, then how do we jump to the external link, we only need to use window.location.href = ...


Css variable Realize page skinning

... Before you start, talk about the custom properties of css3. Before we write css, we all use our own properties, such as margin, padding, etc. But have you ever seen such css :root{ --primary-color:#989898; --light:#fff; --dark:#000; } which –primary-color, –light, –dark are custom...


iTOL quickly draws the highest phylogenetic tree!

... [TOC] iTOLIntroduction When everyone is watching high-score articles, they will always be amazed at why people can make such a good-looking and tall phylogenetic tree, and the good-looking map can directly improve the grade of the article. Impact high score articles. People's trees are...