Rotation diagram of mobile terminal (written in native JS)

Rotation diagram of mobile terminal (written in native JS) 1, Realize the following functions: Can automatically play pictures You can drag your finger to play the carousel 2, Implementation steps Auto play function: ① Start timer ② The translate of CSS3 can be used to move the mobile terminal. Note that you can move without adding us ...

Posted by SueHubert on Wed, 02 Feb 2022 09:15:06 +0100

Six ways of Vue component communication

preface The component is Vue JS is one of the most powerful functions, and the scope of component instances is independent of each other, which means that the data between different components cannot refer to each other. Generally speaking, components can have the following relationships: As shown in the above figure, A and B, B and C, B an ...

Posted by superman on Wed, 02 Feb 2022 06:17:55 +0100

Blog Optimization: change of basic information

This article was first published on blog Iceberg tree Sankey , it's better to browse blogs. This blog is optimized based on Lucky boss's blog and changed into its own style. Thanks to the boss's open source, you can save most of your time and energy in debugging and looking for materials. LuakSec official website: LuckySec (luckyzmj.cn) Ope ...

Posted by nemesis.2002 on Wed, 02 Feb 2022 05:58:58 +0100

npm easy-to-use software packages must be collected

From: Wangdao https://juejin.cn/post/6950584088462163982 In the face of busy schedule and urgent construction period constraints, it is undoubtedly very important to choose tools that can effectively improve productivity. Here, I sort out a list of my favorite NPM packages. In order to facilitate browsing, I also classified them, hoping t ...

Posted by buzz on Wed, 02 Feb 2022 05:35:14 +0100

Simple implementation of Promise basic method

prefacePromise is a very common concept in front-end interview and work. There is also a market for the handwritten implementation of its various methods. Today, I will summarize the simple implementation of promise's basic methods.catch() methodThe catch method is an encapsulation of the then method and is only used to receive error messages i ...

Posted by webguync on Wed, 02 Feb 2022 03:49:49 +0100

Consolidate JS optional (?.) Operation symbol, the original function can also be written in optional way, and learned again!

Author: Ashish Lahoti Translator: front end Xiaozhi Source: CSS tricket There are dreams and dry goods. Wechat search [Daqian world] pays attention to this dish washing wisdom who is still washing dishes in the early morning. This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, ...

Posted by jlommori on Wed, 02 Feb 2022 03:18:16 +0100

Web page cutting exercise - producer introduction card

Producer introduction card target Step 1. Basic structure and text content Each item container has picture and text blocks <body> <div class="wrap"> <div class="item"> <img src="https://picsum.photos/300/300/?random=1"> <div class="txt"> <h2>CSS Coke ...

Posted by idontkno on Wed, 02 Feb 2022 02:29:47 +0100

This Valentine's Day, give her a different gift

Today is February 2, 2022. It's less than two weeks from this year's Valentine's Day.Introducing a website to you, Cunt. I love youReference sample website:A presentation slide. Cunt. I love youSource codeLove timer. Cunt. I love youSource codeApplication processOpen the home page of your website: Cunt. I love you(Since the site database uses P ...

Posted by creative on Wed, 02 Feb 2022 01:52:03 +0100

Learn the front end from scratch - (II)

preface: This is my summary. If there is anything wrong, please give me some advice. You can go to the rookie tutorial for self-study in detail. Learn the front end from scratch - (II) What is XML? Quote the official answer: XML refers to EXtensible Markup Language. XML is a markup language much like HTML. XML is designed to transmit dat ...

Posted by ouch! on Tue, 01 Feb 2022 23:18:46 +0100

Finish this and say Yes to the execution context

Who is this pointing to   the specific details and rules of this point will be analyzed later. Here you can "memorize" the following rules: In the function body, when a function is simply called non explicitly or implicitly, this in the function will be bound to undefined in the strict mode, and bound to the global object w ...

Posted by mezise on Tue, 01 Feb 2022 22:55:13 +0100