(32)Vue template syntax
Template syntax
Text:
<span>Message: {{ msg }}</span>
v-once
One-time interpolation, when the data changes, the contents of the interpolation will not be updated
<span v-once>This will not change: {{MSG}}</span>
v-html directive
<p>Using mustaches: {{ rawHtml }}</p>
<p>Using v-html direct ...
Posted by dgny06 on Mon, 08 Jul 2019 18:18:08 +0200
[April 20] Use requests to log on to the website of the Academic Affairs Department and inquire about the timetable
Recent classes are always unable to remember which classroom, I feel it is very troublesome to visit the website of the Academic Affairs Office manually every time. It happened that I was learning to crawl, so I wanted to write a crawler to help me look up the information on the timetable.
Do as you say. With requests, a third-party library th ...
Posted by kyleldi on Sun, 07 Jul 2019 22:46:49 +0200
Android meets Drag and Drop by chance
Recently, during the iteration of the project, I encountered some knowledge points about Drag And Drop, so I made some simple explorations on this knowledge point and recorded my experience in using it.
Design sketch
GIF.gif
Requirements introduction
Drag the pictures provided in the question stem to the answer box for sorting. The pictures i ...
Posted by bgbs on Sun, 07 Jul 2019 21:29:40 +0200
JavaFX Quick Start
Create Hello World Project with - javaFx
Open Eclipse and select:
File -> New -> Others..
Create a project name: Hello JavaFx, as shown in the following figure-
After the project has been successfully created, it is shown in the following figure-
The Hello World sample code is also created, as shown below.-
package applicati ...
Posted by Kibeth on Sun, 07 Jul 2019 20:37:17 +0200
RelativeSizeTextView for Custom Controls
Preface
Firstly, the blogger of this control really does not know what kind of Chinese name to explain, so the title can only carry the name of the control directly. The main function of the control is to display a pre-text and post-text that can configure the size and color. It may be said that they do not understand very well. Okay, firs ...
Posted by jennatar on Sun, 07 Jul 2019 03:31:58 +0200
How to Implement Android Desktop Widgets (2)
In the last blog, I mainly introduced how to implement an Android desktop widget from the perspective of documentation. This blog will show you how to implement an Android widget with examples!!
Look at the effect map first.
As can be seen from the effect chart, the desktop widget has been implemented, but there is nothing in it. Now let's ...
Posted by chiefrokka on Sun, 07 Jul 2019 03:09:35 +0200
Android Imitates Huawei Weather Drawing Dial
Design sketch
You can see that this custom control combines color gradient, dynamic drawing scale and dynamic water polo effect. Next, let's see how this effect can be achieved step by step.
Start customizing controls
Like many custom controls, you need to base a View or a ViewGroup.
I chose View here, as follows:
public class HuaWei ...
Posted by nc_brox on Sun, 07 Jul 2019 00:50:54 +0200
Analysis and Application of LayoutInflater Source Code
I. Brief Introduction
LayoutInflater is literally translated into LayoutInflater, which is used to create layout views. Commonly used inflate() converts an xml layout file into a View. Here are three ways to get LayoutInflater and two ways to create View.
1. Three ways to get LayoutInflater
LayoutInflater inflater = getLayoutInflater(); ...
Posted by Submerged on Sat, 06 Jul 2019 23:02:03 +0200
Talking about React Implementation Comment Box
Structure:
Layer 1 - CommentBox
Layer 2 - CommentList
Layer 3 - Comment
Layer 2 - CommentForm
1. JSX grammar:
var CommentBox = React.createClass({
render: function() {
return (
<div className="commentBox">
CommentBox
</div>
);
}
});
ReactDOM.render(
<CommentBox />,
document.getElementById('commentBox ...
Posted by hemoglobina on Sat, 06 Jul 2019 23:02:45 +0200
Swagger+Spring mvc Generate Restful Interface Document
Swagger Is a canonical and complete framework for generating, describing, invoking, and visualizing RESTful-style Web services.The overall goal is to have the client and file system update at the same speed as the server.The file's methods, parameters, and models are tightly integrated into the server-side code, allowing the API to stay in sync ...
Posted by sjaccaud on Sat, 06 Jul 2019 19:03:56 +0200