programmer group

java annotations are easy to use

java annotations are easy to use Annotations have been used throughout the development process, and today I finally want to look at the implementation of annotations.Drive directly // Custom Notes // Annotation has been implemented here // Note that comments are only valid in the form of reflection calls @Retention(value = RetentionPolicy.RUNTIME) @Target(value = {ElementType.METHOD,ElementType.FIELD}) public @interface InterfaceTest...

programmer group

Problems with Android setPolyToPoly (2)

Problems with Android setPolyToPoly (2) Question: The question is still the last one ( Problems with Android setPolyToPoly (1) ) Problem, which was solved with hardware acceleration in the previous article, but he may have black edges around the drawn quadrilateral on some mobile phones. It is suspected that the transparency problem was solved after matrix acted on canvas. Solution: Matx has problems working on canvas on some...

programmer group

vue+vuex+axios+echarts Draw a dynamically updated map of China

I. Build projects and install plug-ins # Install vue-cli npm install vue-cli -g # Initialize project vue init webpack china-map # Cut into Catalog cd china-map # Installation Project Dependency npm install # Install vuex npm install vuex --save # Install axios npm install axios --save # Install ECharts npm install echarts --save II. Project structure ├── index.html ├── main.js ├── components │ └──...

programmer group

vue+vuex+axios+echarts Draw a dynamically updated map of China

I. Build projects and install plug-ins # Install vue-cli npm install vue-cli -g # Initialize project vue init webpack china-map # Cut into Catalog cd china-map # Installation Project Dependency npm install # Install vuex npm install vuex --save # Install axios npm install axios --save # Install ECharts npm install echarts --save II. Project structure ├── index.html ├── main.js ├── components │ └──...

programmer group

[LUOGU] 1364 Hospital Settings

There is a binary tree, as shown in the figure: [I am the picture] Among them, the numbers in the circle represent the population of the residents in the node.Numbers on the rim represent node numbers. A hospital is now required on a node to minimize the sum of all residents'journeys, and it is agreed that the distance between adjacent nodes is 1.As in the figure above, If the hospital is located in one place, the distance and =...

programmer group

JQuery Source Understanding (1)

When you look at the JQuery source code, you can use StackOverFlow to search for answers to related questions and often find satisfactory answers quickly. 1. Extend JQuery to a global object Extend JQuery to a global object so that you can use $directly in your js code to represent JQuery. // Expose jQuery to the global object window.jQuery = window.$ = jQuery; 2. JQuery prototype object jQuery.fn = jQuery.prototype = {···} //...