• What is XML? Using XML to parse tree structure data


    In real life, many things are related to each other. For example, there are many provinces in China, and there are many cities under each province. The relationship between these provinces can be described by a tree structure, as shown in Figure 1. Figure 1 city relationship Figure 1 visually describes the hierarchical relationship between […]

  • JQuery — basic syntax


    JQuery — basic syntax Blog description The information involved in this article comes from Internet collation and personal summary, which means personal learning and experience summary. If there is any infringement, please contact me to delete it. Thank you! grammar JQuery syntax selects HTML elements and performs some operations on the selected elements. Basic grammar: […]

  • ES6 module + user defined elements


    It’s probably the latest “first experience.”.Hey, a friend said to me, the author, you write so much that no one can read it. It’s not interesting at all. It’s better to save this time to sit down and have a cup of milk tea, right. I can’t get angry. I just want to see how […]

  • The fifth part, array


    January 21, 2020 C language array learning 1、 Array 1. Definition of array An array is a variable that consists ofSame data typeA group of elements of variable A space in memory array A continuous string of spaces in memory 2. Data structure and basic elements identifier The name of an array to distinguish different […]

  • Relearning front-end CSS (5) CSS layout properties: floating, positioning, flex


    This article is mainly about recording CSS layout properties, involving the use of display, float, position, flex, grid layout API and the solutions to the problems encountered. Display of CSS layout Here, we only introduce the differences between display attribute values of inline, inline block and block, and we won’t introduce anything else. 1、 Display […]

  • Block level element and in line element collation


    Block level elements: Most of them are structural markers <address>…</adderss> < center >… < / center > address text <h1>… < / H1 > Title Level <h2>… < / H2 > Title Level 2 <h3>… < / H3 > Title Level 3 < H4 >… < / H4 > Title Level 4 < H5 >… […]

  • Go gadget series — determine whether an element exists in an array


    A series of articles: Go gadget series — determine whether an element exists in an array Go gadget series — retrial mechanism Go gadget series — type conversion intType array func IsContainInt(items []int, item int) bool { for _, eachItem := range items { if eachItem == item { return true } } return false […]

  • STL_ iterator


    1、 Basic principle of iterator An iterator is an object that “traverses all or part of the elements in an STL container.”. The iterator points to a specific location in the container. An iterator is like a pointer. Iterators provide access to objects in a container and can define the scope of objects in the […]

  • JS simple Tetris game


    JS simple Tetris game start 1. Create a width of200px, Gao Wei  360pxBackground container for Tetris .container { position: relative; width: 200px; height: 360px; background-color: #000; } 2. Create a20 * 20Block elements of Tetris .container { position: relative; width: 200px; height: 360px; background-color: #000; } .activity-model { width: 20px; height: 20px; background-color: cadetblue; border: […]

  • Python basic data type list tuple dict set


    Python basic data type – list tuple dict set data type Representation method characteristic list The list is shown in square brackets: [] A list is an ordered collection in which elements can be added and deleted at any time. The difference between C + + array and C + + array is that the […]

  • Look at animation algorithm: sort – quick sort


    Introduction:Quick sort also adopts the idea of dividing into two parts. So what’s the difference between quick sort and merge sort? Merge sort is to split all elements into ordered arrays, and then merge these arrays. Although quick sort is also split, the operation after splitting is to select an intermediate node from the array, […]

  • Custom HTML tags (XML)


    Both HTML and HTML5 can customize tags. After browsing the source code of some websites, you will find that there are tags and elements in some webpages that you don’t know, but these elements can be executed by the browser. This is the custom element. After defining tags freely without using pre-defined semantic tags, our […]