Tag:element

  • Explain BFC with examples

    Time:2020-4-2

    Basic concept of BFC Block formatting context (BFC)It is a part of visual CSS rendering of web page, the area where the layout process of block box occurs, and the area where floating elements interact with other elements. –From MDN How to create BFC The following methods will createblock formatting context : Root elements (<html>) […]

  • Read the assets module of zepto source code

    Time:2020-4-2

    assetsThe module is to solve the problem that Safari mobile version crashes when loading too many pictures. Because I haven’t dealt with such a scenario, the code in this part won’t be explained too much. To illustrate this problem, I translated the article how to work around the mobile Safari image resource limit as an […]

  • 80 front-end interview classic multiple choice questions, worth collecting!

    Time:2020-4-1

    Preface Have a look at all kinds of interview questions, multiple choice questions are necessary So I sorted out some classic front-end interview questions, hoping to help you find a job in the future! HTML/CSS 1. In the CSS selector, the correct priority is () A. ID selector > label selector > class selector B. […]

  • Groovy core (1): string, set, operator overloading

    Time:2020-4-1

    Blog Homepage Groovy is the only scripting language to enhance the Java platform; compared with Java, scripting language has a better representation ability and can provide a higher level of abstraction.Groovy language features: Groovy is an object-oriented scripting language, and all things involved are objects, which is not like Java language Groovy and Java are […]

  • The application of REM and postcss pxtorem in Vue

    Time:2020-4-1

    REM layout Rem is the root element(htmlInfont-sizeValue.There are not many details about REM layout. There are many materials that explain the principle of REM layout in detail.Simply put, the device width is dynamically set to REM value through JS to achieve the effect of using rem as the unit of element adaptation in different width […]

  • How to check parameters gracefully in springboot

    Time:2020-3-31

    Preface One of the most annoying things about web development is to check parameters. Basically, every interface needs to check parameters. For example, some format checks that are not empty are essential. If there are fewer parameters, it’s still easy to handle. But if there are more parameters, a large number of them will appear […]

  • sort

    Time:2020-3-31

    1、 Bubble sorting Basic ideas:Compare adjacent elements, and if the first is larger than the second, swap their positions. var arr=[19,8,3,10,32,16] let maopao=(arr)=>{ for(let i=0;i<arr.length;i++){ //Every time the flag bit is traversed, it must be set to false to determine whether the following elements have been exchanged flag = false; for(let j=0;j<arr.length-1-i;j++){ if(arr[j]>arr[j+1]){ var temp=arr[j+1] […]

  • Stack of data structure

    Time:2020-3-30

    What is a stack? Stack is an abstract data structure, which only allows the stack in and out operations in a section of the ordered linear data set, so it operates the elements according to the principle of LIFO (last in first out). One end of the stack that is allowed to be pushed in […]

  • go-redis

    Time:2020-3-30

    redis Basic introduction to Redis Redis is a NoSQL database, not a traditional database, with high performance. It is suitable for caching and persistence. It is a fully open-source, free and high-performance distributed memory database. It runs based on memory and supports persistence. It is one of the most popular NoSQL databases, also known as […]

  • C notes 06 “scope & array

    Time:2020-3-30

    Scope of action In any kind of programming, the scope is the area where the variables defined in the program exist, beyond which the variables cannot be accessed. There are three places in C to declare variables: Within a function or blocklocalvariable Outside all functionsOverall situationvariable stayformFunction parameter definition of parameter local variable Variables declared […]

  • Queue of data structure

    Time:2020-3-30

    What is a queue? A queue is a linear table that allows only insertion at one end and deletion at the other. Is a first in first out linear table, referred to as FIFO. The end that can be inserted is called the end of the team, and the end that can be deleted is […]

  • Angular 2 TemplateRef & ViewContainerRef

    Time:2020-3-30

    Read the latest tutorial of angular 6 / rxjs, please visit the front-end fairy Road TemplateRef Before introducing templateref, let’s take a look at the HTML template element – < template >. Template elements are a mechanism that allows you to include client-side content that does not render when the page is loaded, but can […]