The CDN of Vue3 series introduces dependent packages to optimize the packaging rate

be careful!!! be careful!!! be careful!!! This article is based on Webpack packaging I summary Benefits of using CDN Relieve the pressure on the server and allocate the requests when the first screen is loaded to other serversOptimize the packaged verdor JS too big problemSpeed up the first screen loadingSpeed up packaging In particul ...

Added by nitromaster on Thu, 03 Feb 2022 04:24:51 +0200

Freecodecamp JavaScript elementary algorithm question-3

13. Filter false values in the arrayRemove all false values from the arrayFalse values in JavaScript include false, null, 0, "", undefined and NaN.Tip: consider converting each value to a boolean.Input: bouncer([7, "ate", "", false, 9])Output: [7, "ate", 9]Solution 1:function bouncer(arr) { let temp = [ ...

Added by kc11 on Wed, 02 Feb 2022 23:01:54 +0200

leetcode 1744. Can you eat your favorite candy on your favorite day?

leetcode daily question 1744. Can you eat your favorite candy on your favorite day? My thoughts For each query in the querie s, you can calculate the minimum number of meals (equal to days) and the maximum number of meals (equal to days) × The maximum number you can eat per day). According to example 2, we can think that if we calcula ...

Added by chrischen on Wed, 02 Feb 2022 20:27:29 +0200

The routing Router in Vue is from 0 ~ 0.5 basic knowledge to use (the basic use that the back-end personnel need to master)

📑 Content of this article: from 0 ~ 0.5 basic knowledge to use of routing Router in Vue (basic use that back-end personnel need to master) 📘 Article column: Front end knowledge (knowledge points to be mastered at the back end) Front and rear end separation project (Vue + SpringBoot) 🎬 Last updated: January 29, 2022 Vue's life cycle entry to ...

Added by andylyon87 on Wed, 02 Feb 2022 20:00:19 +0200

Reinterpret JavaScript prototype and prototype chain

preface Although JavaScript prototype and prototype chain are an old topic, they still confuse many people. Today I'll talk about this issue from another angle. Two questions Let's look at this code first: let obj = {} obj.__proto__.haha = 'gogo' console.log(obj.haha) // "gogo" Run the above code and the output is gogo. For this result, there ...

Added by snowrhythm on Wed, 02 Feb 2022 19:09:04 +0200

VUE learning, ref attribute, props configuration item, minix mixing, custom plug-in, scoped style

VUE learning (13), ref attribute, props configuration item, minix mixing, custom plug-in, scoped style 1, ref attribute <template> <div> <h1 v-text="msg" ref="title"></h1> <button ref="btn" @click="showDOM">Click on the top of my output DOM element</button> <School ref="sch"/> </div> &lt ...

Added by ManInBlack on Wed, 02 Feb 2022 17:03:12 +0200

React hook + typescript + styled component site building

Technology selection Comparison between Vue and React Componentization vue's componentization is to put the UI structure (template), UI style (style), data and business logic (script) in one vue file, before running vue files will be compiled into real components; The Componentization of React is to implement components directly in the form o ...

Added by ganeshasri on Wed, 02 Feb 2022 16:01:20 +0200

Code Output for Front End Interview Questions

Original address: Code Output for Front End Interview Questions git address: https://gitee.com/AiShiYuShiJiePingXing/lovebetterworld Click to GIT Preface: The result of code output is also a common topic in interviews. A lot of knowledge points may be involved in a piece of code, which examines the basic ability of the candidate. In fro ...

Added by mcollyns on Wed, 02 Feb 2022 15:40:29 +0200

Simple implementation of Promise basic method

preface Promise 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() method The catch method is an encapsulation of the then method and is only used to receive error messag ...

Added by smoked1 on Wed, 02 Feb 2022 09:15:13 +0200

jQuery content review outline

catalogue         I am also a chicken, please communicate more ~ ~!! Thank you, roll king! 1, Basic introduction to jQuery 2, Use jQuery to output the first hello world III. what is $() 4, Differences between jQuery and DOM objects 5, jQuery selector 6, jQuery property operation 7, DOM addition, deletion and modification 8, CSS styl ...

Added by social_experiment on Wed, 02 Feb 2022 08:52:57 +0200