当前位置:网站首页>Interview questions and answers for the second company (2)
Interview questions and answers for the second company (2)
2022-07-26 10:27:00 【Xaivor】
- What are the three main components of a page ?
html head body - The basic attributes of a box model mainly include ?
margin padding width height border wait - 1B = 8 bit
- The difference between heap and stack ?
We all know : In the field of computer , Stacks are two data structures , They can only be at one end ( It's called the top of the stack (top)) Insert and delete data items .
Stack : Queue priority , fifo ; Release is automatically assigned by the operating system , Stores the parameter values of the function , The value of a local variable, etc . It operates like a stack in a data structure .
Pile up : First in, then out ; Dynamically allocated space Release is usually assigned by the programmer , If programmers don't release , At the end of the program, the OS Recycling , The distribution method is similar to the linked list .
5.MVC What is it? , What are the differences ? that MVVM Well ?
MVC It's a use MVC(Model View Controller Model - View - controller ) Design creation Web The pattern of the application :
- Model( Model ) Represents the core of the application ( For example, database record list ).
- View( View ) Display the data ( Database records ).
- Controller( controller ) Process input ( Write database records ).
MVC The pattern also provides for HTML、CSS and JavaScript Full control of .
Model( Model ) Is the part of the application that deals with the application's data logic , Usually model objects are responsible for accessing data in the database .
View( View ) It's the part of the application that handles data display , Usually views are created from model data .
Controller( controller ) Is the part of the application that handles user interaction , Usually the controller is responsible for reading data from the view , Control user input , And send data to the model .
MVC Layering helps manage complex applications , Because you can focus on one aspect at a time . for example , You can focus on view design without relying on business logic . It also makes it easier to test applications .
MVC Layering also simplifies group development . Different developers can develop views at the same time 、 Controller logic and business logic .
The simplest way to put it is :
| front end | Back end | |
| M | json xml html data etc. | database Documents, etc. |
| V | template engine Template fragments, etc | HTML Templates |
| C | JS Business logic HTTP Request interaction (AJAX,JSONP,WEBSOCKET) | HTTP Request routing Search engine Data analysis File service |
- Low coupling . View (View) Can be independent of Model Changes and modifications , One ViewModel Can be bound to different "View" On , When View When it changes Model It can be the same , When Model When it changes View It can be the same .
- Reusability . You can put some view logic in one ViewModel Inside , Let a lot of view Reuse this view logic .
- Independent development . Developers can focus on the development of business logic and data (ViewModel), Designers can focus on page design , Use Expression Blend It's easy to design interfaces and generate xaml Code .
- Testable . The interface is always more difficult to test , And now the test can target ViewModel To write .
边栏推荐
- Reproduce the snake game in C language (I) build pages and construct snakes
- 利用原生js实现自定义滚动条(可点击到达,拖动到达)
- 我们的Web3创业项目,黄了
- Some descriptions of DS V2 push down in spark
- Unit test, what is unit test and why is it so difficult to write a single test
- Data communication foundation STP principle
- json-c库的简单使用——将json文件转换为struct.
- Structure of [Halcon vision] operator
- 畅听,网文流量竞争的下一站?
- Yarn 'TSC' is not an internal or external command, nor is it a runnable program or batch file. The problem that the command cannot be found after installing the global package
猜你喜欢
![[Halcon vision] software programming ideas](/img/9b/a27338689ee4598dac88f6e5d92053.png)
[Halcon vision] software programming ideas

Study on the basis of opencv

Our Web3 entrepreneurship project is yellow

The CLOB field cannot be converted when querying Damon database

Beginner of flask framework-04-flask blueprint and code separation

js翻页、kkpager.js翻页

Cause: could't make a guess for solution

Tradingview 使用教程

【Halcon视觉】形态学腐蚀
![[Halcon vision] image gray change](/img/62/426713becba851f034e6008f28bdb0.png)
[Halcon vision] image gray change
随机推荐
面试第二家公司的面试题及答案(二)
Deduct daily question 838 of a certain day
[Halcon vision] affine transformation
【C#语言】具名类型和匿名类型
Application of crosstab in SQL Server
原生JS-获取transform值 x y z及rotate旋转角度
[Halcon vision] image gray change
【Halcon视觉】软件编程思路
The problem of incomplete or partial display of the last recyclerview is solved
C language course design Tetris (Part 1)
上传图片获取宽高
【socket】三次握手是在listen中完成,accept只从完成连接的队列中拿出一个连接
string null转空字符串(空字符串是什么意思)
C语言回调函数
Structure of [Halcon vision] operator
SPARK中 DS V2 push down(下推)的一些说明
videojs转canvas暂停、播放、切换视频
Cause: could't make a guess for solution
[Halcon vision] array
AirTest