Record a difficult background reconstruction

There is a requirement that the original background needs to be reconstructed. The front end is shown as follows:As you can see, this one has the function of adding and deleting, and it needs to grow like this. The data format given by the back end is simplified to: { "data": { "path": "data", "type": "dict", "showNa ...

Posted by majocmatt on Fri, 08 Nov 2019 01:11:52 -0800

Use of @property decorator in python

[TOC] 1. Raise questions When binding attributes to a class instance, if we expose them directly, it's easy to write, but there's no way to check the parameters, so you can change your performance arbitrarily, even if it's of the wrong type. class Student(object): def __init__(self, score): self.score = score if __name__ == '__ma ...

Posted by CooKies37 on Thu, 07 Nov 2019 18:49:26 -0800

jQuery Source Analysis DOM Operation Module Delete Element Details

This section talks about the Delete Elements module in the DOM operation module, which is used to delete a node in the DOM or to uninstall the node from the DOM tree. If the node has binding events, we can choose to keep or delete them. There are three interfaces for deleting elements: empty(); Remove all child elements of the matching element ...

Posted by wedge00 on Thu, 07 Nov 2019 17:03:17 -0800

File upload and download based on formdata and blob

First, introduce the basic knowledge used formdata Definition on MDN: the FormData interface provides a way to construct key value pairs that represent form data. After that, the data can be sent out using the XMLHttpRequest.send() method.In short, it is the parameter used to construct http request (it can carry file data). Common methods:FormD ...

Posted by grazzman on Wed, 06 Nov 2019 20:15:06 -0800

From form in fluent

General methodAll those who have done the front-end work should have submitted the form. Take text input as an example, the general TextField component is provided in flutter TextField( decoration: InputDecoration(labelText: 'Product name'), onChanged: (String value) { setState(() { _name = value; }); ...

Posted by elementaluk on Wed, 06 Nov 2019 14:26:41 -0800

JPA -- mapping one-way one to many relationships -- 11

By adding the set collection to the Customer class. That is, there is one party to maintain the relationship. Use the annotation @ onetoman, and then in the Order class There is no need to add a foreign key, but the resulting data table and one-way many to one table structure are the same. There are no redundant columns in the Cus ...

Posted by JamieinNH on Wed, 06 Nov 2019 12:07:15 -0800

The parameter binding of basic application of springboot2 can correctly understand the scope of content type

Content type understanding http protocol is an application layer protocol based on tcp/ip protocol, which consists of three parts: status line, header information and message body. The corresponding http request is: request line, request header, request body. The content type is in the request header. Generally, the server will obtain how the ...

Posted by tisource on Wed, 06 Nov 2019 09:29:31 -0800

yml configuration file in SpringBoot

1. Writing format of yml configuration file The format is a property name separated by '.' in a normal configuration file, which is': 'and newline. Example: //Common format spring.datasource.driver-class-name=com.mysql.jdbc.Driver //yml format spring: datasource: driver-class-name: com.mysql.jdbc.Driver Note: 1. The annotation format i ...

Posted by incarnate on Wed, 06 Nov 2019 06:08:44 -0800

Why is LocalDateTime recommended instead of Date?

Change from: Why is LocalDateTime recommended instead of Date? By reading this article you will learn: Why do I need LocalDate, LocalTime and LocalDateTime How to use java8's new time API, including creation, formatting, parsing, calculation and modification Why LocalDate, LocalTime and LocalDateTime are needed Date if not formatte ...

Posted by imperialized on Wed, 06 Nov 2019 00:51:16 -0800

10. pytest -- skip and xfail marks

Catalog 1. Skip execution of test cases 1.1. @pytest.mark.skip decorator 1.2. pytest.skip method 1.3. @pytest.mark.skipif decorator 1.4. pytest.importorskip method 1.5. Skip test class 1.6. Skip test module 1.7. Skip specified file or directory 1.8. summary ...

Posted by dabigchz on Wed, 06 Nov 2019 00:43:01 -0800