React - Ajax - axios - configure agent to solve cross domain problems - message subscription / publishing mechanism - PubSubJS - Fetch - github user search case

1, Understand 1. Pre description React itself only focuses on the interface and does not contain the code to send ajax requestsThe front-end application needs to interact with the background through ajax requests (json data)Third party ajax libraries (or self encapsulation) need to be integrated in React applications 2. Common ajax req ...

Posted by drawmack on Wed, 05 Jan 2022 08:56:46 +0100

Cross domain solutions

Cross domain The principle of cross domain is: the same domain is only when the protocol, domain name and port are the same. Otherwise, it is cross domain. Cross domain means that the browser does not allow the source of the current page to request data from another source Homology Another concept is homology. Homology refers to the sam ...

Posted by matbennett on Wed, 05 Jan 2022 08:39:36 +0100

Vue learning notes - 6 Vue3 quick start

Vue learning notes – 6 Vue3 quick start 6. Vue3 get started quickly 6.1 create Vue3 project 6.1. 1 create with Vue cli Official documents ## Check the version of @ vue/cli and make sure that the version of @ vue/cli is in 4.5 Above 0 vue --version vue -V ## Install or upgrade your @ vue/cli npm install -g @vue/cli ## establish vue cr ...

Posted by maheshb on Wed, 05 Jan 2022 08:08:55 +0100

Vue3 responsive principle

vue3 responsive principleIf there are any errors, please point them out~More study notes request stamp: https://github.com/6fa/WebKno...1. Responsive coreSuppose you want sum to be a responsive variable in the following example:let num1 = 1; let num2 = 2; let sum = num1 + num2; num1 = 10 console.log(sum) //sum is still 3, non responsiveThe par ...

Posted by kirk112 on Wed, 05 Jan 2022 07:57:08 +0100

[jQuery in front end tutorial series] 02_ Introduction to jQuery and understanding of design ideas

jQuery video through train from getting started to becoming proficient:         JQuery video tutorial, from introduction to actual combat, interactive actual combat between native ajax and jQuery ajax, easy to understand! Getting started with jQuery jQuery download and import jQuery Download Official website address: jQuery Official A ...

Posted by chetanmadaan on Wed, 05 Jan 2022 07:35:56 +0100

Five TypeScript design patterns you should know

By Fernando DoglioTranslator: front end XiaozhiSource: mediumThere are dreams and dry goods. Wechat search [Daqian world] pays attention to this bowl 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, materials and my se ...

Posted by plodos on Wed, 05 Jan 2022 06:45:52 +0100

On New Year's day in 2022, I finally understood the prototype and prototype chain

prefaceIf your understanding of prototype and prototype chain is still at a very shallow and ambiguous stage, you might as well take a look at my article. It should be helpful to you. If it is so helpful to you, you are welcome to praise, comment and forward. If you have questions and doubts, you can also leave a message in the comment area. I ...

Posted by fredfish666 on Wed, 05 Jan 2022 05:45:15 +0100

Front end learning notes____ Vue2+Vue3

preface Learning video address: https://www.bilibili.com/video/BV1Zy4y1K7SH?from=search&seid=16946268743532201801Learning progress: this video is suitable for students with css, html, JavaScript and front-end and back-end interactionSummary of learning methods: https://editor.csdn.net/md/?articleId=116121563 Part I VUE Foundation 1 ...

Posted by bimmer528 on Wed, 05 Jan 2022 05:30:35 +0100

Fourth quarter of Web front end (jQuery): V: 402 select all and deselect all + 403 attribute selector and attribute setting + 501 secondary provincial and municipal linkage

catalogue I objective 1. Want to: Learn front-end knowledge 2. Think: take notes. Next time, you don't need to watch the video. You can quickly recall by looking at the notes directly. II reference resources 1. GitHub website of my own code 2.SIKI College: I refer to this video for practice 3.w3school official website: used as a dictio ...

Posted by dewknight on Wed, 05 Jan 2022 04:45:49 +0100

Handwritten simple webpack

Compile product analysis (() => { // Module dependency var __webpack_modules__ = ({ "./src/index.js": ((module, __unused_webpack_exports, __webpack_require__) => { // Execute the module code, where it is executed at the same time__ webpack_require__ Reference code eval(`const str = __webpack_require ...

Posted by michealholding on Wed, 05 Jan 2022 03:57:36 +0100