• CSS of front end


    Normal flow / document flow There is no concept of document flow / document flow in W3C specification, only common flow / normal flow. The name of document flow is mainly the translation method of most Chinese translators. What is ordinary flow?It is the process of arranging elements (block / block elements, inline / inline […]

  • Classes in TS


    In addition to implementing the functions of all classes in ES6, typescript has added some new usages (part ES7). 1、 Main usage of classes in ES6: 1. UseclassDefining classes, usingconstructorDefine the constructor.adoptnewWhen a new instance is generated, the constructor is called automatically. 2. UseextendsKeyword implementation inheritance, subclass usesuperKeyword to call the constructor and method of […]

  • For swiftui, this is enough


    Swiftui is a new way to build UI and a new coding style. In this paper, we share the new features of swift 5.1 syntax and the advantages of swiftui in an easy-to-understand language. We hope that it will be helpful to the students who love the mobile terminal and let us understand swiftui as […]

  • Position of CSS: fixed; not relative to web page positioning


    describe Position: fixed; the left (top) element is positioned relative to the page, and the height and width percentages are also relative to the page. Absolute positioning elements are not hidden because of the overflow: hidden; parent element. Nested absolute positioning is relative page positioning, there is no correlation between positioning each other. However, in […]

  • Mybatis solves the problem of inconsistent entity class attributes and database column names in the development process


    Mybatis solves the problem of inconsistent entity class attributes and database column names in the development process Note: before we stipulated that when writing entity classes, the attribute and database column names must be consistent. Thinking: when the second opening, business changes, etc., the column name in the database is inconsistent with the attribute name […]

  • Some advanced usages of string serialization and deserialization in JSON format


    (1) Only serialize the value corresponding to the specified attribute into a string: var filter = {name: ‘Jerry’, sex: ‘male’, age: ’10’}; var jsonStr4 = JSON.stringify(filter, [‘name’]); console.log(jsonStr4); The parameter names that you want to participate in serialization are JSON.stringify The second parameter of the method is passed in. In the above example, only the […]

  • Icon implementation of SAP ui5 web component


    Example: on the react application developed by my SAP ui5 web component, this plus icon is displayed: The plus sign icon is introduced into the react component Here, assign the Add button to the icon property of shellbaritem: The runtime effect is as follows: Let’s go back to what we imported in the code add.js […]

  • Redux first experience


    Redux is a unified state management mechanism for the project. The communication between parent and child components is a method of passing props property value and calling back the parent component in advance. The whole state can only be from top to bottom, without the ability of backtracking. Redux centralizes all the States to the […]

  • Summary of IOS tips, absolutely what you want (continuous update)


    Recently, I summarize some tips in IOS development, which can greatly facilitate our development. Group style top blank handling of uitableview //Group list header blank processing UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0.1)]; self.tableView.tableHeaderView = view; In the plain style of uitableview, cancel the stagnation effect of the header – (void)scrollViewDidScroll:(UIScrollView *)scrollView { […]

  • C ා read and write serialport


    The serialdatareceivedeventhandler has no response. Don’t forget the assignment of these 2 properties. serialPort1.DtrEnable = true; serialPort1.RtsEnable = true;

  • The right posture for select for update not to be managed by spring transactions


    Clarify the concept set autocommit = 0 To turn off the automatic commit of transactions in the current session, you need to manually commit or rollback, which is equivalent to opening a global transaction. In MySQLIn the transaction, the default autocommit is 1, and each SQL operation is considered as a single transaction and is […]

  • [email protected] How to use attribute injection


    This article mainly introduces [email protected] Attribute injection use method analysis, the article through the example code introduced in very detail, for everyone’s study or work has a certain reference learning value, need friends can refer to In projects using the spring framework, @ value is one of the frequently used annotations. Its function is to […]