• Arrows for inputting text up and down in latex


    Right arrow In latex, you can enter the right arrow of the upper and lower text with\Xrightarrow [upper formula] {lower formula}Write it out, as shown in the figure below: x\xrightarrow[a]{b}y left arrow In latex, you can enter the right arrow of the upper and lower text with\Xleftarrow [formula above] {formula below}Write it out, as shown […]

  • ES6: arrow function and keyword this


    Arrow function ES6 allows you to define functions using “arrows” (= >). It not only simplifies the code, but also solves the problem of this pointing in Es5. In the arrow function in ES6, this always points to the object at the time of definition rather than the object at the time of use. For […]

  • Problems of summation symbols and arrows in latex


    Summation symbol Sum in latex (\ sum {}) For symbols\sum_{ Sum lower limit} ^ {sum upper limit}Write it out, as shown in the figure below: \displaystyle \sum_{i=1}^{N} Note: don’t forget to write\displaystyleOtherwise, the following effect will appear: \sum_{i=1}^{N} arrow Arrow in latex \ rightarrow\rightarrowWrite it out, as shown in the figure below: \rightarrow Mathematical symbols […]

  • Extension of function


    Extension of function Default values for function parameters //The old method adds default values inside the function function foo(value){ //Value = value | true // true is the default value. If false is passed in, the default value will also be used. Obviously, there is an error value = value === undefined?true:value console.log(value); } foo(false) […]

  • How to use the arrow function as a callback to the event listener


    Arrow function ES6 introduces the concept of arrow function, which is a new method to define and write functions. Although it looks like a syntactic sugar of conventional functions, the key difference between them is the rightthisBinding method of. This article does not coverthisA lot of details Event listener callback When writing JavaScript to browsers, […]

  • How does SAP Spartacus get the CMS metadata of the current rendered page


    There is a CMS dependency in the pagelayoutservice implementation: cmsservice The metadata information of the current page is maintained through cms.getcurrentpage. Get the current page context from routingservice, and then extract the actual data from the ngrx store in central: Implementation of routingservice.getpagecontext: read from store. For the arrow function of typescript, the following two […]

  • ES6 interview summary


    Summary of interview questions:https://segmentfault.com/a/11… Map、Set reference resourceshttps://www.runoob.com/w3cnot…MapMap is the structure of a group of key value pairs, which has extremely fast search speed.For example, suppose you want to find the corresponding grades according to the students’ names. If you use array, you need two arrays: var names = [‘Michael’, ‘Bob’, ‘Tracy’]; var scores = [95, […]

  • The GIT bash arrow selection is invalid when the Vue cli 3 project is created


    findGit BashInstallation directory, go toetcDirectory, findbash.bashrcDocuments; Add a new line at the end of the file:alias vue=’winpty vue.cmd’ restartGit BashJust. Reference link:Solution: when creating Vue cli 3 project, GIT bash arrow selection is invalid git windows vue-cli This work adoptsCC agreementReprint must indicate the author and the link of this article Deliberate practice, increasingly refined.

  • The use of arrow function and this pointing


    Arrow function: it is also a way to define function How to define a function: 1、function const day = function(){} 2. Defining functions in literal quantities of objects const obj={ day(){ } } 3. Arrow function in ES6 const day =() =>{ } Parameter problem of arrow function 1.1 put in two parameters const sum […]

  • Side effects of arrow function


    1、 Preface In the project, I am used to using arrow function wherever I can, so that I don’t have to worry about the problem of this action at any time, and it’s very convenient for writing. Also searched related articles, which also suggest using arrow function as far as possible. Of course, the arrow […]

  • Analysis of method chain in JavaScript


    Method chain is a popular programming method, which can help you write more concise and easy to read code. In this article, let’s learn what the method chain in JavaScript is and how it works. In addition, we will explore how to use method links to improve the quality and readability of the code. Method […]

  • Design pattern learning 02 (Java implementation) — UML diagram and class diagram representation


    Write on the front Take notes on learning design patterns Improve the flexible use of design patterns Learning address https://www.bilibili.com/vide… https://www.bilibili.com/vide… Reference article http://c.biancheng.net/view/1… Project source codehttps://gitee.com/zhuang-kang/DesignPattern 2. UML diagram Unified Modeling Language (UML) is a visual modeling language for software design. Its characteristics are simple, unified, graphical, and can express the dynamic and static […]