Tag:Key name

  • JavaScript has a deep understanding of – set, map, weakset and weakmap

    Time:2021-6-20

    Set The set object allows you to store unique values of any type, whether they are original values or object referencesEssence: constructor, used to generate set data structure describe A set object is a collection of values, and you can iterate its elements in the order in which they are inserted. The elements in the […]

  • What is the structure of redis key value pair?

    Time:2021-6-12

    What is the structure of redis key value pair? A global hash table (array) is composed of multiple hash buckets (elements on the array, including entry elements) For example, key name: AAA, key value: BBBThrough hash (AAA), get array subscript 6, then hash bucket 6. The entry element in hash bucket 6 containsKey andValue pointer,Key […]

  • Configuration encapsulation of API interface request

    Time:2021-4-13

    Throw a question Question 1: in our daily development, we all encounter interface class requests, various third-party interfaces, and internal interfaces. How can we maintain these interface quick requests conveniently and quickly? Question 2: in the face of a third-party interface, remember when docking, do you think you can’t find it in the subsequent search? […]

  • The function of map and set in ES6

    Time:2021-2-11

    Set、Map、WeakSet、WeakMap If we want to describe it in one sentence, we can saySet is a data structure called set, and map is a data structure called dictionary So what is a set? What is a dictionary? aggregate A set is a combination of unordered, associated, and non repetitive memory structures [called elements in mathematics] Dictionaries […]

  • JavaScript replacement 6: key value vs. data

    Time:2021-1-19

    Introduction The data structure of “key value pair” is basically used before{}There is a more suitable choice in the new specification. LastJavaScript replacement 5: function nesting。 Origin My GitHub Es5 mode Basic Usage use{}Store key value pairs. Only two types of keys are supported:StringandSymbol 。 const obj1 = {1:’1′}; const obj2 = {‘name’:’Tom’}; const mark […]

  • Bash skills: introduce a shell script that can add, delete, modify and query key value pair format configuration files

    Time:2021-1-6

    This article introduces a bash shell script for parsing, adding, deleting, modifying and querying key value pair format configuration files. The basic configuration format information processed by the shell script is as follows:key|value。 In the script, putkeyCalled “key name.”. holdvalueCalled “key value.”. Put the wholekey|valueThis is called a key value pair. Take the middle one|This […]

  • A technique for deleting and modifying the shell configuration file is introduced

    Time:2021-1-6

    This article introduces a bash shell script for parsing, adding, deleting, modifying and querying key value pair format configuration files. The basic configuration format information processed by the shell script is as follows:key|value。 In the script, putkeyCalled “key name.”. holdvalueCalled “key value.”. Put the wholekey|valueThis is called a key value pair. Take the middle one|This […]

  • Don’t use array in loop body_ merge ()

    Time:2021-1-5

    Original link The title is not to be used in the loop bodyarray_merge()In fact, this is only one of the conclusions of this article Now let’s study it togetherphpThe combination of arrays in language (recursive combination is not considered here) Comparison of four ways to merge arrays Comparison of four common ways to merge arrays […]

  • Analysis of Yii framework arrayabletrait

    Time:2020-12-30

    “`php * @since 2.0 */ trait ArrayableTrait { /** * Returns the list of fields that should be returned by default by [[toArray()]] when no specific fields are specified. *When there is no specified field in [[toarray()]], the default returned field list * * A field is a named element in the returned array by […]

  • Talk about the hole I stepped on in PHP interview

    Time:2020-12-23

    1. The difference between get and post The display is different The get method is to concatenate the string behind the address bar The post method is invisible The size of the pass is different The specific size is related to the browser, IE browser is 2K, the maximum value of other browsers may be […]

  • PHP interview pit

    Time:2020-12-3

    Because of the need for an interview recently, I specially sorted out some interview questions. Share it. I hope it will be useful to yourself and others. If there is no answer, it will be updated one after another. If there is a supplementary answer, I would like to thank you very much. 1. The […]

  • ES6 set and map data structure

    Time:2020-11-26

    Set is a new data structure of ES6, which is characterized by the absence of members with the same value Set Set itself is a constructor used to generate the set data structure const set = new Set(); [1,2,2,3,4,5,6,7,5,8,9].forEach((x)=>{    set.add(x);}) console.log(set);  // [1,2,3,4,5,6,7,8,9] The set constructor takes an array or class array as a […]