P07: a small case of using useReducer to realize the effect of Redux

elaborate In actual use, useContext and useReducer can achieve effects similar to Redux, and for some simple personal projects, the following scheme can be used to replace Redux, which is simpler than redux. Because useContext and useReducer have been studied in my previous articles, we focus on how to simulate the effect of Redux. If you ...

Posted by hofmann777 on Fri, 17 Dec 2021 09:03:15 +0100

Vue e e-commerce background management system project development

Project effect display: ย 1. Project overview 1.1 overview of basic business of e-commerce project Generally, the business services used by customers include: PC, applet, mobile web and mobile app. Business services used by administrators: PC background management end; Functions of PC background management end Manage user account (l ...

Posted by jhuaraya on Fri, 17 Dec 2021 07:29:41 +0100

JavaScript - 04 data type conversion

19. Cast type Cast, also known as explicit cast 19.1 # cast to number # 3 methods โ–ถ Convert content to numbers // Usage: Number(a) // If the content can be converted to a number, the corresponding number (decimal or integer) is returned console.log(Number('1.01')); // 1.01 // If the content cannot be converted to numbers, NaN is retur ...

Posted by zkoneffko on Fri, 17 Dec 2021 06:58:07 +0100

Touch a webpack loader

catalog: Basic conceptsIntroduction to loader developmentLocal loader debuggingPublish and reference loaderDemo: Sprite chart loader 1. Basic concepts As we all know, webpack is a module packer. However, webpack can only handle js and json files. loader enables webpack to process other types of files, convert them into valid modules fo ...

Posted by nishmgopla on Fri, 17 Dec 2021 03:09:55 +0100

rails experience Series 1

In fact, as a novice just getting started, you don't need to know so many things. For rails, when you enter rails new demo, there are so many folders and so many things you can't understand when you cd to the demo. I feel like I'm one step away from learning to be buried Especially in the case of scarce rails data, if you can rely on your own s ...

Posted by tomcurcuruto on Thu, 16 Dec 2021 22:01:31 +0100

Three.js to achieve 3D panoramic detective games ๐Ÿ•ต๏ธ

backgroundYou're an intern detective at the detective agency ๐Ÿ•ต๏ธ๏ผŒ After receiving the task assigned by the superior, go to Zhen Kaixin town ๐Ÿ  Investigate whether citizens are screened or not ๐Ÿ‘จ gemstone ๐Ÿ’Ž Theft case, according to the informant, tramp Lao Shi ๐Ÿ‘จโ€๐ŸŽค According to the clues provided, the thief is hiding in the town. Find him ...

Posted by scripterdx on Thu, 16 Dec 2021 15:29:34 +0100

js operator details

Continue with the previous article. This article mainly talks about the following operators: Remainder operator (%), Exponential operator (* *), Boolean operator (!), Logical & & Logical or (|) Relational operators (>, <, > =, < =) 1. Remainder operator% The sign is% and this operator can find the remainder of the d ...

Posted by arun4444 on Thu, 16 Dec 2021 14:56:55 +0100

Build your own npm privatization warehouse with verdaccio

preface Then the last article What sparks can Gitea+Jenkins collide with? Discussion on front-end automation deployment_ Diehunter 1024 blog - CSDN blog This article will share with you verdaccio Build a privatized npm warehouse and publish npm packages preparation Node environmentRemote or local serververdaccio Installing and configuring v ...

Posted by Kelset on Thu, 16 Dec 2021 12:52:13 +0100

github builds personal dynamic blog at zero cost

Reading guide This paper aims to record the whole construction process, problems and solutions, hoping to bring you some help. The main technologies involved in this paper are as follows: Vue3.0 - Composition API GraphQL ESLint Semantic Versioning,Commitzion,etc``` ISSUE is used to record articles. Markdown is naturally supported. The inter ...

Posted by NightFalcon90909 on Thu, 16 Dec 2021 11:13:05 +0100

6 methods of cross domain data acquisition

1, Basic guidance (1) Get data through Ifram Get index2 through Ifram's contentWindow HTML data //index1 <iframe src="index2.html" id="myIframe"></iframe> <script type="text/javascript"> var myIframe = document.getElementById('myIframe'); window.name = 'mainWindow'; myIframe.onload = function(){ console. ...

Posted by nyfael on Thu, 16 Dec 2021 10:59:29 +0100