Tag:element

  • Learning notes of react advanced guidance 3

    Time:2021-1-21

    Profiler This component implements a simple test of the rendering time of the wrapped component, mainly the settingidAttributes andonRenderFunction returns the corresponding test results. amongonRenderThe return values of are: id: string-SubmittedProfilerTreelikeid. If there are multiple profilers, it can be used to distinguish which part of the tree has been “committed”. phase: “mount” | “update”-Determine whether […]

  • Look at the animation algorithm: sort – select sort

    Time:2021-1-21

    brief introduction Selection sorting is to select the largest or smallest element from the array, and then interact with the first or last element of the team. Because the first thing to do is a selection process, it is called selection sorting. Examples of selection sorting If we have an array: 29,10,14,37,20,25,44,15, how can we […]

  • Leetcode 746. Using the least cost to climb stairs Python implementation

    Time:2021-1-21

    Title Requirements: Thinking: dynamic programming The minimum amount of physical strength required to go up the current staircase is the lower of the previous staircase and the two previous stairs plus the amount of physical strength required to go up the current staircase Maintain an array DP, which is used to save the physical strength […]

  • Ngverify – more efficient angularjs form validation

    Time:2021-1-21

    ngVerify v1.5.6 a easy AngularJS Form Validation plugin.Simple and efficient__ Form validation plug in__ See how powerful it.See how powerful it is Dynamic verification Auto associate submit button Tips for multiple tip verification messages Not only the DOM element value, but also the ngmodel data model Support any type of form elements, and even check […]

  • React basic knowledge and build a simple landing page

    Time:2021-1-20

    1: Concept React originated from the internal project of Facebook. Because the company was not satisfied with all the JavaScript MVC frameworks on the market, it decided to write a set of its own to set up instagram website. After making it, I found that it was easy to use, and it was opened in […]

  • Xiaobai’s sorting | ten classic sorting algorithms (moving pictures)

    Time:2021-1-20

    The key sorting methods in this paper are bubble sorting, merge sorting, quick sorting and bucket sorting. Algorithm classification Ten common sorting algorithms can be divided into two categories Comparison sortObjective: to determine the relative order of elements by comparison. Because its time complexity cannot exceed o (nlogn), it is also called nonlinear time comparison […]

  • Java redis Series 2 (installation and use of redis + implementation of redis persistence))

    Time:2021-1-19

    Java redis Series 2 (installation and use of redis + implementation of redis persistence) What is redis? Redis is an open source and high-performance key value database developed with C language. It officially provides test data, and 50 requests execute 100000 requests concurrently. The read speed is 110000 times / s, and the write speed […]

  • Basic concepts of Vue

    Time:2021-1-19

    The main aspects of the front end logic judge loop event Browser event: window document DOM event: add, delete, traverse, modify node element content view html css signal communication xhr Ajax axios Vue Separation principle of SOC attention Pay attention to the view layer: show it to the user and refresh the data given by […]

  • From the glory of the king

    Time:2021-1-19

    Search “notes of autumn wind” on wechat. Pay attention to me, don’t get lost. In the king’s world, not only happiness, but also learning, let you become a happy and knowledgeable person. The hero of this is its novice guidance. Why do you say that? Let’s look at some pictures first. Yes, the above is […]

  • Swoole source code analysis — shared memory table swoole of memory module_ table

    Time:2021-1-19

    preface swoole_tableA super high performance, concurrent data structure based on shared memory and lock. It is used to solve the problem of multi process / multi thread data sharing and synchronous locking. swoole_tableData structure of swoole_tableIn fact, it is a hash table implemented by the open chain method,memoryIt is an array composed of hash keys […]

  • CSS layout strategy

    Time:2021-1-19

    Left and right layout Left middle right layout horizontally Vertical center And other tips The foregoing This paper introduces some common CSS layout schemes, the usage of tags used in layout and the precautions Left and right layout 1 floating layout First, clear the float of the parent pseudo element .clearfix::after { content: “”; display: […]

  • Leetcode 494. Goal and python implementation

    Time:2021-1-19

    Title Requirements: Thinking: Draw a table You can find that the sum of all elements in the array is 5, so draw a (5)*2+1)A table of len (nums) (that is, a two-dimensional array) -5 ~ 5 means to add or subtract each element of the array to get all possible results All possibilities from [- […]