The Use of Chain Webpack in vue-cli

Preface In the project development, we will inevitably encounter the situation that we need to change the configuration of webpack. Today, we will mainly talk about some configuration changes in vue.config.js, briefly introduce the use of loader; simple configuration with configure Webpack; advanced configuration with chain Webpack; including t ...

Posted on Tue, 30 Jul 2019 01:32:16 -0700 by hoffmeister

Three Characteristics of Object-Oriented

Object-oriented features: encapsulation, inheritance, polymorphism encapsulation Encapsulation is to hide some parts of the class (some attributes or methods). Objects can not directly use hidden attributes or methods. It has the function of protection. 1. Private attribute format: _ attribute name = ...

Posted on Mon, 29 Jul 2019 06:34:45 -0700 by scbookz

Thinking in Java - Interface

9. Interface 9.1 abstract classes and methods Abstract classes: classes containing abstract methods that cannot be instantiated by themselves Abstract method: only declaration, no method body Relationships: abstract methods are sufficient and unnecessary conditions for abstract classes, so abstract classes allow method implementations to coexi ...

Posted on Mon, 29 Jul 2019 03:38:45 -0700 by donbonzo

Use of five different values of CSS position

position attribute The position attribute specifies the type of positioning method (static, relative, fixed, absolute or sticky) used for elements. There are five different values: static relative fixed absolute sticky Then use top, bottom, left, and right attributes to locate elements. However, these attributes will not work unless th ...

Posted on Mon, 29 Jul 2019 00:44:55 -0700 by daedalus__

Reflection mechanism learning record

Reflection Reflection is regarded as the key of dynamic language. Reflection mechanism allows programs to obtain internal information of any class during execution by means of Reflection API, and directly manipulate the internal attributes and methods of any object. Functions provided by Java reflection mechanism Judge the class of any objec ...

Posted on Sun, 28 Jul 2019 07:49:07 -0700 by sfarid

Extension of spring Source Learning Container

In previous chapters, we have been parsing the BeanFactory interface and its default implementation, XmlBeanFactory, for example, but spring also provides another interface, Application Context, to extend existing functions in BeanFactory.Both ApplicationContext and BeanFactory are used to load bean s, but in contrast, ApplicationContext provid ...

Posted on Sun, 28 Jul 2019 06:48:13 -0700 by Sno

JPA3 -- Two-way and Cascade Operations

JPA3 - Two-way and Cascade Operations One-way one-to-many 1.1 Configuration Configure onetomany on one side @Entity @Table(name="t_productDir") public class ProductDir { @Id @GeneratedValue private Long id; private String name; //Configure Multi-party List/Set @OneToMany(f ...

Posted on Sun, 28 Jul 2019 03:11:31 -0700 by ThermalSloth

~~ Object-Oriented Advancement: Class Method~~

python Object-Oriented Advanced Class Method classmethod class method python's class method is implemented through the @classmethod decorator The difference between a class method and a common method is Class methods can only access class variables, not instance variables class Dog(object): def __init__(self, name): self.name = ...

Posted on Sat, 27 Jul 2019 23:43:23 -0700 by Dan06

[PyTorch v1.1.0 Document Study] 60 minutes quick start

Read the documentation: Deep learning with PyTorch: 60 minutes quick start. The goal of this tutorial is to: Overall understanding of PyTorch's tensor library and neural network Train a small neural network for image classification What is PyTorch? This is a Python-based scientific computing package that aims to: Replace NumPy to play ...

Posted on Sat, 27 Jul 2019 14:49:06 -0700 by dylan001

Simple Implementation of File Upload

Simple Implementation of File Upload Two dependency packages Matters needing attention Core API Implementation steps code implementation Knowledge Development of Personal Doubts Two dependency packages commons-fileupload-1.3.2,commons-io-2.5.jar. Matters needing attention The form enctype a ...

Posted on Sat, 27 Jul 2019 00:35:05 -0700 by zerogreen