What are friends?
What are friends? This article is reprinted from https://www.xxhzm.cn/archives/711/ This site is for inclusion only, and the copyright belongs to the original author.
What are friends? This article is reprinted from https://www.xxhzm.cn/archives/711/ This site is for inclusion only, and the copyright belongs to the original author.
foreword In front-end development, we will generate a lot of node_modules, and it will take a long time to delete each time you right click. I saw this gadget on Douyin today, come here to share npkill github repository Currently the project has 5.8K stars use Install globally with npm i -g npkill Then open
Front-end development quickly deletes the node_modules widget Read More »
[TS automatic restart + TS automatic operation + Parcel automatic packaging] Proceed as follows: (1) Initialize npm init –yes and package.json appears (2) Install typescript Install npm i typescript -g globally or Local installation: npm i typescript -D or yarn install yarn global add typescript [npm i typescript -D is the
TS automatic operation + Parcel packaging Read More »
1. Do not generate a sorce map file Set productionSourceMap to false in vue.config.js When this option is turned off, the packaged file will be twice as small 2. If the component library is referenced, set the on-demand reference If your project references the component library, the development environment can be imported without thinking, and
Solve the problem that the dist folder is too large after Vue is packaged Read More »
foreword What is Vuex? The official documentation says this: Vuex 是一个专为Vue.js 应用程序开发的状态管理模式+ 库。它采用集中式存储管理应用的所有组件的状态,并以相应的规则保证状态以一种可预测的方式发生变化。 It can be understood that Vuex is a data management framework what Vuex has state (where state data is stored) getters (can be understood as the computed properties of the store) mutations (methods that change data in state (modify data synchronously)) actions
foreword As the title, I encapsulated an own ajax request function. Uncompressed version: https://cdn.xxhzm.cn/request/request.js Compressed version: https://cdn.xxhzm.cn/request/request.min.js Instructions for use pass parameters URL address Request method (GET, POST) request parameters request header Whether to request asynchronously (true, false), asynchronous request is enabled by default GET GET takes no parameters and no request headers: <script src=”https://cdn.xxhzm.cn/request/request.min.js”></script>
Encapsulate ajax request Read More »
Detailed explanation of watch and watchEffect in Vue3 Using watch and watchEffect in vue 3 componentized development requires import import { watch, watchEffect } from ‘vue’ watch Attributes watch has a certain inertia You can get the original value and the current value Can listen to the transformation of multiple data, carried by a listener
Detailed explanation of watch and watchEffect in Vue3 Read More »
foreword In front-end development, we will generate a lot of node_modules, and it will take a long time to delete each time you right click. I saw this gadget on Douyin today, come here to share npkill github repository Currently the project has 5.8K stars use Install globally with npm i -g npkill Then open
Front-end development quickly deletes the node_modules widget Read More »
[TS automatic restart + TS automatic operation + Parcel automatic packaging] Proceed as follows: (1) Initialize npm init –yes and package.json appears (2) Install typescript Install npm i typescript -g globally or Local installation: npm i typescript -D or yarn install yarn global add typescript [npm i typescript -D is the
TS automatic operation + Parcel packaging Read More »
1. Do not generate a sorce map file Set productionSourceMap to false in vue.config.js When this option is turned off, the packaged file will be twice as small 2. If the component library is referenced, set the on-demand reference If your project references the component library, the development environment can be imported without thinking, and
Solve the problem that the dist folder is too large after Vue is packaged Read More »
foreword What is Vuex? The official documentation says this: Vuex 是一个专为Vue.js 应用程序开发的状态管理模式+ 库。它采用集中式存储管理应用的所有组件的状态,并以相应的规则保证状态以一种可预测的方式发生变化。 It can be understood that Vuex is a data management framework what Vuex has state (where state data is stored) getters (can be understood as the computed properties of the store) mutations (methods that change data in state (modify data synchronously)) actions
foreword As the title, I encapsulated an own ajax request function. Uncompressed version: https://cdn.xxhzm.cn/request/request.js Compressed version: https://cdn.xxhzm.cn/request/request.min.js Instructions for use pass parameters URL address Request method (GET, POST) request parameters request header Whether to request asynchronously (true, false), asynchronous request is enabled by default GET GET takes no parameters and no request headers: <script src=”https://cdn.xxhzm.cn/request/request.min.js”></script>
Encapsulate ajax request Read More »
Detailed explanation of watch and watchEffect in Vue3 Using watch and watchEffect in vue 3 componentized development requires import import { watch, watchEffect } from ‘vue’ watch Attributes watch has a certain inertia You can get the original value and the current value Can listen to the transformation of multiple data, carried by a listener
Detailed explanation of watch and watchEffect in Vue3 Read More »