当前位置:网站首页>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 .
边栏推荐
- 404页面和路由钩子
- Structure of [Halcon vision] operator
- Review of database -- 1. Overview
- 【socket】三次握手是在listen中完成,accept只从完成连接的队列中拿出一个连接
- json_object_put: Assertion `jso->_ref_count > 0‘ failed.Aborted (core dumped)
- js翻页、kkpager.js翻页
- [Halcon vision] array
- 【C#语言】具名类型和匿名类型
- The difference between equals and = =
- mysql 进不去了怎么办
猜你喜欢
随机推荐
C language course design Tetris (Part 2)
Use spiel expressions in custom annotations to dynamically obtain method parameters or execute methods
结构体操作报错:Segmentation fault (core dumped)
如何写一篇百万阅读量的文章
Network related journals and conferences in CS
一些你不知道的 web API
Data communication foundation telnet remote management equipment
Android greendao数据库的使用
函数模板与同名的非模板函数不可以重载(重载的定义)
Using undertow, Nacos offline logout delay after service stop
Study on the basis of opencv
上传图片获取宽高
Data communication foundation STP principle
【杂谈】Error loading psycopg2 module :No module named psycopg2
About the declaration and definition of template functions [easy to understand]
【Halcon视觉】图像灰度变化
PTA class a 1002
Replay the snake game with C language (II) end
Listening freely, the next stop of online text traffic competition?
Data communication foundation - layer 2 switching principle



![[Halcon vision] image filtering](/img/7a/b95f8977f02fab644ef9fb205424e7.png)





