当前位置:网站首页>2021.6.14 notes
2021.6.14 notes
2022-06-25 04:25:00 【Robin Luo Bing】
1、const {app} = require('electron') Deconstruction and assignment of variables deconstruction Destructuring Look at Derrida's Deconstruction
const obj = {
name: "Fred",
age: 42,
id: 1
}
//simple destructuring
const { name } = obj;
console.log("name", name);
//assigning multiple variables at one time
const { age, id } = obj;
console.log("age", age);
console.log("id", id);
//using different names for the properties
const { name: personName } = obj;
console.log("personName", personName);
2、route routes router difference :route, It's a route ,routes, It's a set of routes .router It can be understood as a container , Or a mechanism , It manages a set of route. Simply speaking ,route It's just going on URL Mapping of sum function , And when you receive a URL after , Find the corresponding function in the routing mapping table , This process is driven by router To deal with .https://segmentfault.com/a/1190000016662929
3、 Automatically build routing tables :https://hhyang.cn/v2/tutorial/rgRoutes.html#%E5%AE%89%E8%A3%85
4、uni-app Development app :https://www.cnblogs.com/sunnyeve/p/12567778.html
5、App.mpType = 'app' : App.vue Components are src/main.js Introduced and set up a mpType The attribute value , Its value is app. This value is to distinguish it from the widget page component that I'll talk about later , Because of the applet page component and this App.vue The writing and introduction of components are consistent , To distinguish between the two , Need to set up mpType value .
6、Vue.prototype.$myHttp = MyHttp : Definition Vue The prototype of the , Make in Vue This method can be used in the example of (this.$myHttp) Get component data and tools .
7、vue.config.js Is an optional configuration file , If the ( and package.json Of the same rank ) This file exists in the root directory , Then it will be @vue/cli-service Automatic loading . You can also use package.json Medium vue Field , But pay attention to this way of writing, you need to strictly follow JSON To write .
8、Vue.config.productionTip : Under development environment ,Vue It will provide a lot of warnings to help you deal with common mistakes and traps . And in a production environment , These warnings don't work , Instead, it will increase the volume of the application . Besides , Some warning checks have some small runtime overhead , This can be avoided in the production environment mode .( Description on the official website ) The general meaning should be , Environment configuration of message prompt , Set as development environment or production environment https://segmentfault.com/a/1190000014542373
边栏推荐
- Turn 2D photos into 3D models to see NVIDIA's new AI "magic"!
- numpy np tips: numpy数组的squeeze等处理
- 警惕超范围采集隐私-移动APP违规十宗罪
- DAP数据调度功能完善说明
- Laravel document sorting 8. Middleware
- Laravel document sorting 7. View
- kenlm
- Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'
- Siddhartha: the book of life can be regurgitated frequently
- 95% 程序员都在这里摸鱼……
猜你喜欢
Cesium loading display thermal diagram
1280_ C language to find the average value of two unsigned integer
2.吹响半音阶口琴
Development of trading system (VIII) -- Construction of low delay network
How to quickly deliver high-value software
Acmstreamopen return value problem
1. Phase II of the project - user registration and login
Lecture record: data processing methods and applications of various spatial geodetic techniques
Hello CTP (III) - CTP quotation API
MySQL插入过程报错1062,但是我没有该字段。
随机推荐
Laravel document sorting 10. Request life cycle
How to draw an industry investment map
Win10 environment phpstudy2016 startup failure record
Changsha's "talent seeking": "making efforts" and "making practical moves" go hand in hand, "rapid development" and "slow life" go hand in hand
openmmlab-环境配置
驻波比计算方法
Lecture record: data processing methods and applications of various spatial geodetic techniques
client-go gin的简单整合十一-Delete
地方/园区产业规划之 “ 如何进行产业定位 ”
LeetCode 劍指Offer II 091 粉刷房子[動態規劃] HERODING的LeetCode之路
Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'
如何绘制产业招商地图
Intel 13th generation core showed its true colors for the first time: 68mb cache improved significantly
Acmstreamopen return value problem
Laravel document sorting 4. Controller
《Missing Parts》NFT 作品集第 5 系列上线 The Sandbox 市场平台
1、项目第二阶段——用户注册和登陆
【LeetCode】22. 括号生成
论文阅读《LSD-SLAM: Large-Scale Direct Monocular SLAM》
警惕超范围采集隐私-移动APP违规十宗罪