当前位置:网站首页>Interview questions
Interview questions
2022-07-25 00:55:00 【Classmate Pan Pan】
- 1px Fine line problem ===> I said iphone6 For example : His dpr by 2, One logical pixel is equal to two physical pixels , When your logical pixel is 1 When , He will use one internally 22 Physical pixels to fill , So you can zoom 0.5 To solve this problem , He asked me if I could 0.1 0.2 0.3 0.4? This is through dpr To the , If it is a double graph, zoom 0.5, If it is a triple graph, zoom 0.333 To achieve . Generally, it is a double graph , Because the double image will not be distorted on the double mobile phone , On three times the mobile phone, although he can use 33 Physical pixels to fill , But users can accept . If it is a triple graph , It will be clearer on the mobile phone with the double picture , But users will consume more traffic , So it's usually a double graph , Some companies just judge your mobile phone , Then use three times Or twice
- meta What are the attributes of the tag ? ===> name content http-equiv
- header What labels are there in the head / ===> meta title Set character set Viewport width Etc., etc.
- Deconstruct assignment , hypothesis let obj={name=” Pan Chenyang “,age=18},let {name,age} = obj, I print name and age Pan Chenyang can appear 18, But I first like deconstruction haha, But I want to print out what Pan Chenyang should do , Sure let {name:haha,age} = obj, perhaps let {name,age,…haha} = obj Take it like this
- let and const const Can the defined variables really not be changed ? ===> Basic data types are not good , Complex data types can be changed , Because it is the same address value .
- I have an array bidirectional data binding , I changed the array , Why is the view not updated ? ===> because js The reason for the mechanism , If you change the array by index or length , The view will not be updated , But the data will change . If you want the view to change : Can pass Vue.set(target,index/propsname,value) Method to solve , Or use the compilation method of array , Or you can use forced update vm.$forceupdate, He only affects the instance itself , Not all the subcomponents
function Foo() {
getName = function () {
alert (1); };
return this;
}
Foo.getName = function () {
alert (2);};
Foo.prototype.getName = function () {
alert (3);};
var getName = function () {
alert (4);};
function getName() {
alert (5);}
// Please write the following output :
Foo.getName();
getName();
Foo().getName();
getName();
new Foo.getName();
new Foo().getName();
new new Foo().getName();
边栏推荐
- Heavy forecast! Analysys, together with Microsoft and the Central University of Finance and economics, talks about the digital economy
- Vscode installation and configuration
- Tencent low code platform is officially open source! You can drag and drop and generate mobile phone projects and PC projects! Get private benefits
- [mindspore] [training warning] warning when executing training code
- 7.24 party notice
- MySQL series | log module
- Improve static loading dynamic loading
- Volley7 – networkdispatcher obtains data from the network [easy to understand]
- How to use measurement data to drive the improvement of code review
- ROS机械臂 Movelt 学习笔记3 | kinect360相机(v1)相关配置
猜你喜欢

Wireshark introduction and packet capturing principle and process

7.14 - daily question - 408
![[mindspore] [xception model] script statement is suspected to be wrong](/img/86/3174f9edadf4b815a76678551cbfa5.jpg)
[mindspore] [xception model] script statement is suspected to be wrong

Managing databases in a hybrid cloud: eight key considerations
![[mindspore] [training warning] warning when executing training code](/img/5a/978889301bdd02d6474c6e5723ad97.jpg)
[mindspore] [training warning] warning when executing training code

C recursively obtains all files under the folder and binds them to the treeview control

Join MotoGP Monster Energy British Grand Prix!

Internal network mapping port to external network

BGP machine room and BGP

Cloud native observability tracking technology in the eyes of Baidu engineers
随机推荐
Add the two numbers in the linked list of the second question of C language. Ergodic method
7.19 - daily question - 408
Harbor installation
[mindspore] [xception model] script statement is suspected to be wrong
阿里 Seata 新版本终于解决了 TCC 模式的幂等、悬挂和空回滚问题
mysql初次安装的root密码是什么
Educational codeforces round 89 (rated for Div. 2) ABC problem solution
asp rs.open sql,conn,3,1中3,1代表什么?
jquer $(‘div li‘) $(‘div,li‘) $(‘div>li‘) $(‘div‘,‘li‘)
Unity3d calls between different script functions or parameters
[acwing weekly rematch] 61st weekly 20220723
C language force buckle the eighth question of string conversion integer. Ergodic method
基于ABP实现DDD--领域逻辑和应用逻辑
The model needs to use two losses_ FN, how to operate?
Unity slider slider development
Chapter IV drive subsystem development
paddlepaddle论文系列之Alexnet详解(附源码)
Unity image control and rawimage
Summary of MATLAB basic grammar
Detailed explanation of the usage of vector, queue and stack