当前位置:网站首页>Internship written examination answers
Internship written examination answers
2022-07-19 06:11:00 【Culvert.】
1 CSS Selectors
Spaces indicate descendants , And... Without spaces
> Match all matching child elements
2 flex:0 1 auto The meaning of
flex:flex-grow flex-shrink flex-basis
flex-grow: Growth factor of main dimension , decision flex The relative proportion of the remaining space allocated by the container , The remaining space is flex Container minus all flex The size of the item adds up to the size offlex-shrink: Appoint flex The contraction rules of elements ,flex Elements shrink only when the sum of the default widths is greater than the container , Its shrinkage is based on flex Valueflex-basis: It specifies flex The initialization size of the element on the spindle
flex-grow by 0 Indicates that the element will not be resized to fit flex Main dimensions of containers
flex-shrink by 1 Express When space runs out , The project will shrink
flex:1 amount to flex:1 1 0 That is, elements can be in flex-basis by 0 Expansion on foundation
flex:0 1 auto Represents the width of the box and width Agreement , Then see if there is any space left in the box , If there's room left , because flex-grow by 0, The element size will not be adjusted , If there is no room left , Then the size of the box is according to flex-shrink by 1 To contract
3 Value passing and reference passing
Put it in the parameter and it won't happen , Learn it quickly
var a=40
function change(a){
a=50
}
change(a)
console.log(a) // The result is 40
% Function a Independent of a There is , His change will not affect the arguments a
var a={
name:40}
function change(a){
a.name=50
}
change(a)
console.log(a) // The result is 50
% What is passed to the function here is a The address of , So change a.name Will change the original data
function change(a){
a={
name:50}
}
change(a)
console.log(a) // The result is 40
% In this case, in the function a Points to another address
4 hold axios Change to chain call
scene :
axios.get().then(res1=>{
axios.get().then(res2=>{
axios.get().then(res3=>{
})
})
})
axios.get('').then(res1=>{
return axios.get('')
}).then(res2=>{
return axios.get('')
}).then()
5 http header
HTTP Message headers allow clients and servers to pass through request and response Pass add information
content-Type It is used to tell the server how to process the requested data , And tell the client how to parse the response data
application/x-www-form-urlencoded:HTTP Set the request parameters in key1=val&key2=val Way to organize , And put it into the request entity , If it is Chinese characters or special characters, it will be url transcoding , File... Is not supported , Generally used for form submissionmultipart/form-data: This is a multi part multimedia type , This type is generally used for forms that need to upload filesapplication/json: The required parameter itself is json Formatted data , Parameters will be placed directly in the request entity , The client and server will press json Format parse dataapplication/xmlandtext/xml:xml Formatted data , The latter will be ignored xml The coding format in the data
6 Breadth first traversal and depth first traversal
var node=[{
val:1,
child:[{
val:3
},{
val:4,
child:[{
val:5
}]
}]
},{
val:2}]
function DFS(node){
let res=[]
let len=node.length
for(let i=0;i<len;i++){
res.push(node[i].val)
if(node[i].child){
let value=DFS(node[i].child)
res.push(...value)
}
}
return res
}
function BFS(node){
let res=[]
let len=node.length
let value=[]
for(let i=0;i<len;i++){
console.log(node[i].val);
res.push(node[i].val)
if(node[i].child){
value.push(...BFS(node[i].child))
}
}
value&&res.push(...value)
return res
}
7 v-model The essence of
<input v-model='data' />
amount to
<input :value='data' @input='cahnge' />
边栏推荐
- 有线电视网(树上分组)
- Solutions to slow transmission speed of FileZilla virtual machine
- Computational geometry (2)
- 【力扣】单值二叉树
- Vscode instant English translation plug-in [translation (English Chinese Dictionary)]
- RestAPI实现聚合(黑马教程)
- Hm8203 linear two string charging management controller IC
- Knapsack with dependency, narrow sense (binary enumeration), broad sense (tree DP)
- Wide voltage input high voltage output voltage control type
- Make menuconfig missing ncurses
猜你喜欢

DSL实现自动补全查询

Unity2D学习 Fox Game制作 过程1:基本的游戏角色控制,动画效果,镜头控制,物品收集,bug优化

Introduction to easydarawin streaming media server
![[detailed tutorial installation] [configuration] auxiliary plug-ins about eslint in vscode](/img/d4/31272772b96d3e2f702da74478fd95.png)
[detailed tutorial installation] [configuration] auxiliary plug-ins about eslint in vscode

數學基礎課2_歐拉函數,線性篩,擴歐

索引库中的文档的操作

RestAPI实现聚合(黑马教程)

QT creator flashback solution

Introduction to Darwin streaming server
![MySQL workbench basically uses [create a data table]](/img/cf/00818451ef0e8bcd5cc1d12f00d27c.png)
MySQL workbench basically uses [create a data table]
随机推荐
2021-11-26 pyautogui cooperates with lightning simulator to realize the automation of mobile app check-in and answer questions
BusyBox 1.21.1 有udpsvd功能 可以编译成功 不干涉本机busybox方法
简单Chrome脚本 自动跳过b站视频播放结束后的的充电鸣谢页面
Volatile function of embedded C language
【力扣】环形链表 II
Thermal resistance PT100 cu50 isolation converter to 4-20mA analog output temperature transmitter 0-10V
Ehab the xorcist (XOR property, construction)
Where have all the older programmers gone?
Ht7727 ht7730 ht7733 ht7737 ht7750 asynchronous DCDC boost IC
Common serial communication UART seen from pictures
Wireless charging mouse pad RGB LED lighting wireless charging mouse pad
Peerless good problem (bit operation optimization DP)
What's the worst programmer you've ever seen?
2021-11-17 esp32 pin reference
4-20mA to 4-20mA 0-5V to 0-5V analog signal isolation transmitter
Low power LDO linear regulator IC
有依赖的背包,狭义(二进制枚举),广义(树形dp)
MCU single chip OTP
串口循环缓存区 简单 免初始化 不用堆、指针、分段memcpy
In Chapter 5, can we directly call the run () method to start a new thread