当前位置:网站首页>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' />
边栏推荐
- 2021-09-15
- Volatile function of embedded C language
- MCU single chip OTP
- uboot 编译前的配置命令make config分析
- DSL实现Metrics 聚合
- mapping索引属性 & 创建索的操作
- vscode one dark和c扩展变量颜色冲突 设置settings.json如下即可
- Simple chrome script automatically skips the charging acknowledgment page after the video playback of station B ends
- 2022 robocom world robot developer competition - undergraduate group (provincial competition)
- DSL实现自动补全查询
猜你喜欢

2021 - 09 - 15

Tips for using tp4054 charging IC -- used in conjunction with Zhongke Lanxun ab5365b

你的企业最适合哪种深度学习?
![MySQL workbench basically uses [create a database]](/img/d2/a753e9c77bb17aaff1d0e9dc11c803.png)
MySQL workbench basically uses [create a database]

2021-09-15

2022/07/14 学习笔记 (day07)数组

Basic mathematics course 2_ Euler function, linear sieve, extended Euler

QT creator flashback solution
![[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

Introduction to basic knowledge of Minio
随机推荐
2022/07/10 第五小组 丁帅 学习笔记 day03
MCU single chip OTP
DSL实现自动补全查询
uboot 编译前的配置命令make config分析
[BJOI2019] 排兵布阵(分组背包)
HRA isolation series wide voltage input positive and negative high voltage regulated output
js变量提升
Unity2D学习 Fox Game制作 过程1:基本的游戏角色控制,动画效果,镜头控制,物品收集,bug优化
Loadng class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb
LeetCode字符串
[transfer] Darwin streaming server core code analysis
Fs4061a (5V USB input, double lithium battery series application, 5V boost charging, 8.4v Management IC
Acwing game 59 (AK)
2021 - 09 - 15
自动补全 & (自定义)拼音分词器 & 搜索时注意事项
QT creator flashback solution
带透明png转换成c数组
HM agent multi section lithium battery charging IC
In Chapter 5, can we directly call the run () method to start a new thread
2022 RoboCom 世界机器人开发者大赛-本科组(省赛)