Tag:Write

  • Linux operation and maintenance foundation 2

    Time:2022-7-18

    Content summary Explanation of key configuration terms of virtual machine Remote link tool Xshell basic use Linux command guidelines System operation command Common shortcuts File command operation File editing commands Content details Explanation of key configuration terms of virtual machine #Virtual network editor description Bridge mode # can access the Internet The configured address information […]

  • Loop traversal of array of front-end JS for / for of / for in / arr.foreach()

    Time:2022-7-14

    The function of an array is to use a separate variable name to store a series of values. Array is very powerful, and there are many methods Loop traversal of array for / for of / for in / arr.foreach() For loopThe simplest one is also the most flexible let arr=[1,2,3]; for(let y=0;y console.log(arr[y]) } […]

  • Formik yup writing react form verification

    Time:2022-6-29

    Formik and yup are used to solve the tedious problem of react form verification Form validation without plug-ins Form rules triggered by onchange event Then write rule verification logic for different types Define state for the form //Key code logic //Component trigger area <TextField id=”ResetEmail” type=”email” label=”E-mail” onChange={this.handleInputChange} value={ResetEmail} error={resetPasswordError} /> //Onchange trigger event handleInputChange […]

  • N-many methods for DOM to obtain element nodes

    Time:2022-6-10

    DOM N-many methods for obtaining element nodes /** Get elements according to ‘tag name’ Because there can be multiple elements with the same tag name in HTML Therefore, the accepted variables are an array of classes that can store multiple data Get specific content by subscript. */ // let ulEle = document.getElementsByTagName(“ul”)[0]; // console.log(ulEle); //Get […]

  • [shutter 2-7] shutter handle tutorial UI layout and widget – vertical layout control column

    Time:2022-5-28

    By VladSource | Vlad (official account: fulade_me) Column ColumnIt is a common layout control in fluent. It is responsible for vertical layout. Row is responsible for horizontal layout, both of which are inherited fromFlex, similar toiOSInsideUIScrollViewBut there are many differences.Let’s take a lookColumnConstructor for Column({ /// key Key key, ///The default method for column is […]

  • [flutter 2-8] flutter handle tutorial UI layout and widget – horizontal layout control row

    Time:2022-5-16

    By VladSource | Vlad (official account: fulade_me) Row RowIs a common layout control in fluent, which is responsible for horizontal layout. Column is responsible for vertical layout, both of which are inherited fromFlex, similar toiOSInsideUIScrollView, but there are many differences. RowConstructor andColumnThe constructor of is basically the same Row({ /// key Key key, ///The default […]

  • SCSS can’t use division?

    Time:2022-5-6

    I’ve encountered it in the project before. SCSS is not a division problem. At that time, the project was busy and didn’t deal with it in time, but there has always been a thorn in my heart. I’m upset like Zhang Ailing’s red rose. Now I want to pull out this thorn when I have […]

  • [go] parse yaml file

    Time:2022-4-10

    reference material Golang uses the third-party package Viper to read yaml configuration information 1. Writingdev_custom.ymlDocument content mySql: dns: “sqlserver://sa:[email protected]:1433?database=wzz” sqlServer: dns: “me:[email protected](10.0.0.0:3306)/wzz_db?charset=utf8” 2. Analysisdev_custom.ymlDocument content package config import ( “github.com/mitchellh/mapstructure” “github.com/spf13/viper” “log” “os” ) // CustomT CustomT type Mysql struct { DNS string `yaml:”dns”` } type SqlServer struct { DNS string `yaml:”dns”` } // CustomT […]

  • The development process of fluent plugin is recorded in detail

    Time:2022-1-18

    Demo address prepare 1. The NAV side (IOS, Android) debugs the native implementation.2、flutter_ App (one), debug plug-in.3、flutter_ Plugin (a), write a plug-in. Three channels Basicmessagechannel: used to transfer strings and semi-structured informationMethodchannel: used to pass method invocationEventchannel: used for communication of event streams BinaryMessage.png Writing of three channels at the Fletter end 1. Definition //The […]

  • [flutter 2-7] flutter handle tutorial UI layout and widget – vertical layout control column

    Time:2022-1-7

    By VladSource Vlad (official account: fulade_me) Column ColumnIs a common layout control in fluent, which is responsible for vertical layout. Row is responsible for horizontal layout, both of which are inherited fromFlex, similar toiOSInsideUIScrollView, but there are many differences.Let’s take a look firstColumnConstructor for Column({ /// key Key key, ///The default method for column alignment […]

  • Moya writing simplified ideas: enum

    Time:2021-10-30

    Use Moya to make IOS network requests, There are more than 100 network request methods in the project, and the corresponding enum entries are established Fill in the path, and copy it again under the general case “/” + string (specific case) Look like this public enum Xxx { case zen case userProfile(String) case userRepositories(String) […]

  • Moya writing simplified idea 2: task of enum

    Time:2021-10-29

    Use Moya to make IOS network requests, There are more than 100 network request methods in the project, and the corresponding enum entries are established Fill in the task in the general case, and then do this enum NetHud{ case modify_content(R_create_content) // … } extension NetHud{ public var task: Task { case .modify_content(dat): return .requestJSONEncodable(dat) […]