Android GreenDao common notes
@Entity -- Entity annotation
public @interface Entity {
/**
* The name of the table in the database, which defaults to the class name of the entity
*/
String nameInDb() default "";
/**
* Define index, which can span multiple columns (the default is the number of entity class member variables)
...
Posted by Azu on Wed, 11 Dec 2019 20:25:16 +0100
JS---DOM --- common.js involved in the course
//Code to format the date
//Get the specified label object
//Get the text content of the element
//Get the text content of the element
//Get the first child element in the parent element
//Get the last child element in the parent element
//Get the previous sibling of an element
//Get the next sibling of an element
//Get all siblings of ...
Posted by zTagged on Wed, 11 Dec 2019 15:18:25 +0100
ContentProvider for IPC inter process communication
ContentProvider for interprocess communication
First, introduce
1. The underlying implementation is Binder
2. In addition to the onCreate method running on the main thread, the other four methods are called back from the outside and run in the Binder thread pool.
3. To register ContentProvider, an attribute android:authorities ...
Posted by zipdisk on Wed, 11 Dec 2019 04:15:25 +0100
Click the question mark on the HTML page to display the prompt box
Function of this demo: click the page button to display a prompt message on its edge, and click anywhere on the page to disappear.
The following picture:
1. Required plug-ins:
jquery plug-in;
layer plug-in;
2.HTML content:
==Note = =:
class="j-help-tips" this class is the core and indispensable.
The data tips attribute is required. ...
Posted by jponte on Wed, 11 Dec 2019 03:11:54 +0100
Kotlin core syntax: annotation and reflection
Blog Homepage
1. Declare and apply comments
1.1 application notes
The way to use annotations in kotlin is the same as in java, which takes the @ character as the prefix of the name and puts it at the front of the declaration to be annotated.
Take a look at the @ Deprecated annotation, which is enhanced in Kotlin with the replaceWith parameter.
...
Posted by Aleks on Wed, 11 Dec 2019 02:12:51 +0100
Delegations that Neter should know thoroughly
This article will lead to several questions, and through examples to analyze the delegation and usage in C#as a starting point
For delegation I find that most people have the following questions, or may have encountered such questions in an interview:
Is a delegate equivalent to a C/C++ function pointer?
What exactly is a delegation?
What exac ...
Posted by quiettech on Wed, 11 Dec 2019 01:01:13 +0100
Jsonpath use for Snack3
1. Introduction of Snack3 and JSONPath
Snack3 is a JSON framework that supports JSONPath.JSONPath is a powerful feature that can also be used as an Object Query Language (OQL) in the Java framework.
<dependency>
<groupId>org.noear</groupId>
<artifactId>snack3</artifactId>
<version>3.1.5.10</version&g ...
Posted by srboj on Tue, 10 Dec 2019 12:52:04 +0100
Exploration of Node.js Module System Source Code
This article was first published on the Front End Team Blog of the Government, Mining and Cloud: Exploration of Node.js Module System Source Code
Node.js enables front-end engineers to work across servers. Of course, the birth of a new operating environment will also bring new modules, functions, or ideological innovations. This article will l ...
Posted by jpoladsky on Mon, 09 Dec 2019 19:02:55 +0100
API Interface Development: Interface Development Returns Result Solution
abstract
If the front-end and back-end are separated for project development, the better way for front-end and back-end interaction is to use HTTP+JSON.How can an interface return results that are more concise, elegant, and reasonable, and that can be made clear to front-end developers without increasing the workload for back-end developers?
St ...
Posted by sriusa on Mon, 09 Dec 2019 01:44:42 +0100
for loop in Flask learning notes
Last time I talked about the if statement, in fact, in Flask, the usage is basically the same. The only difference is that the syntax format of the for loop in HTML is slightly different. It is only effective to execute the for loop in the following format.{% for xx in xxx %}{% endfor %}
Think about when you can use the for loop? It's about tr ...
Posted by asy1mpo on Sat, 07 Dec 2019 21:14:18 +0100