Tag:Class name

  • C + + foundation-6-inheritance

    Time:2022-5-4

    6. Succession 1 #include 2 using namespace std; 3 4 5 class Base { 6 public: 7 Base() { 8 m_A = 10; 9 } 10 int m_A; 11 12 }; 13 14 class Son: public Base { 15 public: 16 Son() { 17 m_A = 20; 18 } 19 int m_A; 20 }; 21 […]

  • It’s too lame. Baidu has all the answers that can’t be found. The multi-level header of elementui’s table fixes the first n columns

    Time:2022-4-24

    No more nonsense. Let’s see the effect first. I fixed the first three columns and rendered the complex header, which I said in the previous chapter(https://segmentfault.com/a/11…) 1. The first n columns of the multi-level header of the table of elementui are fixed (Note: the N columns are fixed according to the width) 1.1 it is […]

  • Vbs script error: the solution of file name or class name not found in operation

    Time:2022-4-13

    I had nothing to do yesterday afternoon, so I turned out the previous script and tried to run it, but there was an error as shown in the figure. So: Regsvr32 VBScript dll。 Rerun the script. I didn’t expect it to be the same. It’s normal to put it on another computer. Strange, I haven’t […]

  • How does a master write a selector that others can’t understand

    Time:2022-4-13

    The title of this article isHow to write a selector that others can’t understandHowever, the original intention is not to expect you to write such complex choices. Some complex (weird) selectors may be useful in some specific scenes, or they are written based on the special background at that time. Through these cases, we can […]

  • Implementation of PHP plug-in system (IV): implementation of registration action

    Time:2022-4-8

    Series articles: Implementation of PHP plug-in system: why Implementation of PHP plug-in system (II): obtain all plug-in information Implementation of PHP plug-in system (3): implementation of detector Implementation of PHP plug-in system (IV): implementation of registration action Implementation of PHP plug-in system (V): trigger plug-in Implementation of PHP plug-in system (6): complete manager class Implementation […]

  • Implementation of PHP plug-in system (6): complete manager class

    Time:2022-4-5

    Series articles: Implementation of PHP plug-in system (I): why implement plug-in system Implementation of PHP plug-in system (II): obtain all plug-in information Implementation of PHP plug-in system (3): implementation of detector Implementation of PHP plug-in system (IV): implementation of registration action Implementation of PHP plug-in system (V): trigger plug-in Implementation of PHP plug-in system (6): […]

  • Introduce two CSS methodologies

    Time:2022-4-3

    preface Speaking of CSS naming conventions, you should be familiar with them or have heard of themBEM。 BEM is a CSS class naming method proposed by yandex team, which aims to help developers create better and consistent CSS modules. BEM divides the class names of pages intoBlock、Element、Modifier。 Block: a block is a visual or semantic […]

  • Facebook Refactoring: abandon sass / less and welcome the era of atomized CSS

    Time:2022-3-20

    The article is translated / polished by SSH,Original address。 Official account No.Front end from advanced to admission“, welcome to follow and add my friends to discuss. With the recent product deployment of Facebook and twitter, I think a new trend is growing slowly:Atomic CSS-in-JS。 In this article, we will see what atomic CSS (atomic CSS) […]

  • Leetcode disorder | personal question making record

    Time:2022-3-6

    Quicksort class Sort: def quickSort(self, arr): self.quicksort_helper(arr, 0, len(arr)-1) return arr def quicksort_helper(self, arr, left, right): if left < right: pivot_final_resting_position = self.partition(arr, left, right) self.quicksort_helper(arr, left, pivot_final_resting_position-1) self.quicksort_helper(arr, pivot_final_resting_position+1, right) def partition(self, arr, left, right): pivot = arr[right] i = left – 1 for j in range(left, right): if arr[j] <= pivot: i += […]

  • How does jQuery modify styles?

    Time:2022-3-2

    JQuery provides two methods for style operation, namely CSS () method and setting class style method. The former directly operates the style of elements, such as width and height, through CSS () method, while the latter operates the style of elements by adding or deleting class names to elements. Let’s explain in detail below. Modify […]

  • Handwritten a virtual DOM library to completely let you understand the diff algorithm

    Time:2022-2-27

    So called virtualDOMJust usejsObject to describe realityDOM, it’s relative to nativeDOMLighter because of the realDOMObject comes with a lot of properties. In addition, with virtualDOMofdiffThe algorithm can be updated with the least operationDOMIn addition, it can also makeVueandReactSuch frameworks support platforms other than browsers. This article will refer to well-known frameworkssnabbdomLibrary to hand write a […]

  • Recursively traversing DOM nodes

    Time:2022-2-9

    function EleInsert() { //Get the parent DOM through ID (getelementbyid) //You can also use the name attribute getelementsbyname / getElementsByTagName / getelementsbyclassname //Get an element through selector (queryselector) / get a set of elements through selector (queryselectorall) //(get htmldocument. Documentelement) / get body (document. Body) let parents = document. Getelementbyid (parent ID); function ergodic(ele) { […]