Interviewer must ask series: handwritten publish subscribe mode and observer mode

catalogue preface 1. Publish subscribe mode definition Handwritten publish subscribe mode 2. Observer mode definition Handwriting observer mode 3. The fundamental difference between the two preface Publish subscriber mode and observer mode are two design modes. They are the same in essence, but there are also differences. There are ...

Added by martins on Sat, 05 Mar 2022 01:13:24 +0200

CSS learning notes

1, CSS introduction css introduction method Introduction method:1. Embedded2. Outreach3. InlineWriting position:Write css in the style tag of headImporting css file with link tag in headcss is written in the style attribute of the tagScope of action:Current pageMultiple pagesCurrent labelUsage scenario:Small caseIn the projectUse with js ...

Added by maxic0 on Sat, 05 Mar 2022 00:54:46 +0200

[summary of front-end knowledge points] WebAPI BOM & localStorage

Five objects of BOM Window object: current browser window 1 . window object characteristics Window is the top-level object in JavaScript. All global functions and global objects are the methods of window objects For example, document, alert(), setInterval(), setTimeout(), and so on The member of the window object (attribute + method), whi ...

Added by maverickminds on Sat, 05 Mar 2022 00:44:49 +0200

React17+TS4 project construction

1. Create a new react+ts project npx create-react-app <appname> --template typescript 2. push the new local project to the remote warehouse New remote warehouse Open the local project directory and add all the existing files in the current directory to the newly created git warehouse Execute git add Submit the added documents and w ...

Added by Tjeuten on Sat, 05 Mar 2022 00:08:51 +0200

2021-04-17 the use method of hooks listView long list in antd moblie, enter the error reporting dataSource for the second time, and report the error must be the same

Official usage (custom container) https://mobile.ant.design/components/list-view-cn/#components-list-view-demo-basic-sticky The official method of use is very smooth at first glance, but there will be some unexpected problems as soon as the data is put on. I have deep experience At first glance, some friends may not understand the meaning of o ...

Added by robinjohn on Fri, 04 Mar 2022 23:52:15 +0200

New feature of ES6 | array extension

1. Extension operator (1) Basic usage Array to parameter sequence (comma separated) let arr = [1,2,3]; console.log(...arr); // 1 2 3 function call let arr = [1,2]; function add(x,y) { console.log(x+y); }; add(...arr); // 3 Extension operators can place expressions const arr = [ ...(x>0 ? ['a']:[]), 'b', ] If the e ...

Added by helloworld on Fri, 04 Mar 2022 23:01:39 +0200

vue slot details

Slot is a placeholder provided to the parent component in the child component. It is represented by < slot > < / slot >. The parent component can fill any template code in this placeholder, such as HTML, component, etc. the filled content will replace the < slot > < / slot > tag of the child component. The purpose of the ...

Added by kef on Fri, 04 Mar 2022 20:10:32 +0200

Common syntax features of ES5-ES12

Statement: This article is reproduced from: Talking about the new functions of ECMAScript(ES6-ES11) from the development history of JavaScriptI made a small typesetting modification to the original text. Thank you very much for your enthusiastic sharing~ preface JavaScript is the most widely used and best developed front-end and ba ...

Added by snapbackz on Fri, 04 Mar 2022 19:02:04 +0200

[js30 Wes BOS] image processing using CSS variables 03

title: [native javascript project] image processing with javascript 03date: 2021-11-13 11:43:56tags: native javascript projectcategories: 30 native javascript projectsintroductionThis paper uses JavaScript to update the image of a web page. For the image processing part, this page can adjust the border width, blur and border color value of the ...

Added by icey37 on Fri, 04 Mar 2022 16:05:18 +0200

Uni app Android local packaging learning record

1. Download Android Studio Download address: Android Developers | Android Developers 2. Download android SDK Download address: Native developer support 3. Unzip Android SDK - > View release MD file - > check whether the current HBuilderX is the same as the specified packaging version - > update HBuilderX to the corresponding ...

Added by gojiita on Fri, 04 Mar 2022 15:36:44 +0200