Tag:javascript
-
HTML front-end learning (7) — BOM operation of JavaScript learning
BOM operation of JavaScript learning Introduction to BOM operation Current page operation Current page height and width Open website Close current page Window sub object History object Location object Spring frame Warning box Confirmation box prompt box Timer related Triggered in a few seconds The cycle is triggered after a period of time Introduction to […]
-
JavaScript review object
Create an object with the new keyword: var obj = new object(); obj.uname = ‘hlr’; obj.age = 18; obj. Sex = ‘female’; obj.sayHi = function(){ console.log(Hi~); } //Call object console.log(obj.uname); console.log(obj[‘age’]); obj.sayHi(); Create objects using constructors: function Fruit(name,price){ this.name = name; this.price = price; this.description = function(y){ console.log(y); } } var peach = new Fruit(‘peach’,10.00); […]
-
The common methods of array objects in native JavaScript are filter(), sort(), join(), push(), pop(), unshift(), shift(), reverse(), concat()
Today, when learning Vue, I operated on the array. I used filter (), sort (), which I haven’t used for a long time. I forgot to have this thing (- | – |). I took this opportunity to review the document again to learn and record the method of array.Data processing is generally operated by […]
-
The pits that useeffect walked through
Write in front in react, there are two components: function component and class component. One of the differences between the two is that class components have a life cycle, while function components do not inherit react Component, so the function componentNo life cycle。 So you check the documentation and find that using useeffect can […]
-
node. JS deploy Vue code
Technology: node JS + Express framework preface After the Vue code is packaged, the dist file is generated, and the index.exe in it is opened directly HTML, the page cannot be displayed normally So you need to deploy them with the server. Follow me to use node JS rapid deployment! Note: Vue packaging commandnpm run […]
-
(WEB front-end daily practice) make a colorful animation of a small ball following the mouse with JavaScript / Doge / Doge
On April 30, (daily practice) JavaScript case, mouse follows colorful special effects When the mouse moves on the page, it generates a colorful small ball to move, and the generated position follows the mouse position. After a period of time, the small ball disappears. Similar special effects: it has the function of highlighting the position […]
-
Initial react: how do we create a react application
Article catalogue Understand the basic concepts of react Describe the UI using components Managing state using state and props Understanding the essence of JSX grammar Create a react application using scaffolding tools Actual combat: send request and display data in component Summary Understand the basic concepts of react React itself is actually a very simple […]
-
Ajax for web development
Today, I will share with you the usefulness of Ajax technology in combination with several cases Let’s first understand what AJAX is Ajax: Technology of refreshing only partial pages The full name of AJAX is asynchronous JavaScript and XML AJAX is not a new programming language, but a new way to use existing standards AJAX […]
-
Front end learning route (front end zero basis)
Hello! I’m a programmer, rice noodles. At present, I am engaged in full stack development in a listed company of the world’s top 500. I once served as the leader of the front-end group of more than 10 people. I like to share various front-end technologies and have been helped before, so I will also […]
-
JavaScript built-in object string summary and case
Personal profile About the author: Hello, I’m Daniel, the new star creator in the whole stack field. Personal homepage:Hall owner a Niu🔥 Support me: like + collect ⭐ Email + message Series column:Hard bubble JavaScript🍁 Maxim: so far, all life is written with failure, but it doesn’t prevent me from moving forward! Previous portal: 👉Four […]
-
Master each () and $. Of jQuery traversal operation Each () [easy to get started]
You may be curious: “ah, when I first learned jQuery, didn’t I remember learning an iteration? Oh, yes, it’s implicit iteration. That’s a simple operation of traversal, so why learn traversal???” Now let me explain to you curious babies. Let’s think about what we learn implicit iteration for first? Is it to give the same […]
-
Cache architecture in distributed system
Caching is an old-fashioned technology. In the case of high concurrent reads, it can be described as a silver bullet against traffic for read services. Three sharp tools for high concurrency: caching, current limiting and degradation. Today, let’s talk about caching. For caching, my understanding is to make the data closer to the user, in […]