Grid layout learning notes

Grid is the most powerful CSS layout scheme, stronger than flex. It divides web pages into grids, and can combine different sizes of grids to make a variety of layouts.As shown in the above figure, it is the grid layout application, and for example, the main page dashboard of the management system, which is implemented by grid layout. Flex layo ...

Posted by igebert on Tue, 05 Nov 2019 20:03:29 -0800

Simple use of H5 Handlebars

In H5, it's Html. We don't have an el tag here. So we can only use templates. The benefits are described above <!-- more --> Scan code to pay attention to public numbers, and update work regularly. In web development, it is common for js to parse json. It's very complicated. Handlebars uses a template. As long as you define a template a ...

Posted by phpdoodler on Tue, 05 Nov 2019 18:04:49 -0800

Why does a series override the equals method and have to override the hasCode method?

Object source code and comments Equals is the public method of Object, so we usually rewrite this equals method in our own class, and at the same time we must rewrite the hasCode method. Why do we have to rewrite the hasCode method to rewrite the equals method? /** * Returns a hash code value for the object. This method is * supporte ...

Posted by phpizza on Tue, 05 Nov 2019 11:24:56 -0800

I suggest you use LocalDateTime instead of Date

Time processing is often encountered in the process of project development, but do you really use it right? Do you understand that static decoration SimpleDateFormat is disabled in Alibaba development manual By reading this article you will learn: Why do I need LocalDate, LocalTime, LocalDateTime [java8's new class] How to use java8's new ...

Posted by simwiz on Tue, 05 Nov 2019 10:29:45 -0800

element+vue implementation interface dynamic add form

First, make sure that your development environment is the vue+element framework. And then we can start Add a button to open the modal box< El button type = "primary" @ Click = "handleskuproperties" > SKU properties < / El button > To design a component for dynamically adding forms, I u ...

Posted by cafrow on Tue, 05 Nov 2019 10:15:55 -0800

Python learning note 1 - variable operation

Why study pytorch Replace numpy to make better use of GPUs Provide maximum flexibility and speed for deep learning Learning premise Make sure that the torch package is installed, and the following sentence can be executed smoothly import torch Variable operation Source: https://pytorch.org/tutorials/beginner/b ...

Posted by legio on Tue, 05 Nov 2019 08:43:38 -0800

How to develop adaptive page quickly according to the size of design drawing

Two common solutions 1. Dynamically set the width and initial scale of the viewport 2. The solution of rem is to dynamically set font size with element Html Method 1: meta viewport You are familiar with the meta tag. First, let's look at the six properties of the meta viewport: Attribute name explain width Set the width of the viewpo ...

Posted by hmemnon on Tue, 05 Nov 2019 01:55:04 -0800

React foundation - not unknown JSX

Preface What should we pay attention to when adding attributes in JSX and how do the child elements in JSX operate? The case problem of components, the use of extension operators, and how to cycle through an object What does prop s in JSX refer to and what should be paid attention to in the form's labe? Although the above questions are very c ...

Posted by nikosft on Tue, 05 Nov 2019 01:18:32 -0800

Source code analysis of spring learning -- AbstractBeanFactory

AbstractBeanFactory AbstractBeanFactory abstract class, inherited FactoryBeanRegistrySupport And realized. ConfigurableBeanFactory Interface. Class structure constant // Parent class container private BeanFactory parentBeanFactory; // Class loader private ClassLoader beanClassLoader = ClassUtils.getDefaultClassLoader(); // Temporary loader pri ...

Posted by WeddingLink on Mon, 04 Nov 2019 23:18:39 -0800

python self study journal 9 -- select data structure

1. Write a program to read in a word list from the file, and print out the word set of all palindromes This palindrome is different from the one previously understood, for example: ['deltas','desalt','lasted','salted','slated','staled'] ['retainers','ternaries'] All words with the same letters are included in the palindrome word set According t ...

Posted by theoph on Mon, 04 Nov 2019 11:34:12 -0800