Notes on the Development of Yii 2.0+
1. AR mode removes the automatic sorting function
public function search($params)
{
$dataProvider = new ActiveDataProvider([
'query' => $query,
'sort' => false, // Remove automatic sorting
]);
2. Scalar Query
The corresponding table of Book model is book, and the parameter value o ...
Posted by jjrosen on Tue, 08 Oct 2019 23:45:13 +0200
Day4_JDBC-BaseDao Class Optimization
I. analysis.
From last article Day3_JDBC - Encapsulation of Addition, Deletion and Change Checks (BaseDao class) using DBUtils third-party tools As you can see, every method in the BaseDao class needs to pass in a type of entity class (that is, JavaBean type). If we inherit the BaseDao class, we tell ...
Posted by bellaso on Tue, 08 Oct 2019 12:16:30 +0200
BeanPostProcessor, Initializing Bean, init-method Analysis of Spring
TIPS:Spring has actually provided us with some hook methods to do some post-processing business after initializing beans. The so-called post-processing is the Bean Post Processor in this article.
BeanPost Processor provides two callback methods in which you can implement some customized business logic.
...
Posted by mm00 on Tue, 08 Oct 2019 08:15:13 +0200
Vue render rendering function
Scenario: In general, vue uses template to create html, but in some cases, it needs to be written in js, and then render function is used.
Formal evolution of render function:
render: function(createElement){
return createElement(App)
}
Further abbreviated as:
render(createElement){
return create ...
Posted by darshanpm on Tue, 08 Oct 2019 01:09:45 +0200
Golang Reptiles: Use of colly Library
1. Introduction to colly:
Colly is a Golang framework for building Web scraper. With Colly, you can build complex Web scrapers, ranging from simple scrapers to complex asynchronous Web crawlers that handle millions of Web pages. Colly provides an API for executing network requests and processing recei ...
Posted by Mikell on Mon, 07 Oct 2019 22:35:11 +0200
Advanced Vue.js Lecture 2
Advanced Vue.js Lecture 2
11. Use transition-group element to implement list animation
12, why the data of the component must be a function
13. Custom key modifier
14. Customize global instructions for text boxes to get focus
15, Component - Way to Create Components 1
16. Components - Ways to Create ...
Posted by girlzz on Mon, 07 Oct 2019 11:39:41 +0200
Design pattern JavaScript implementation
The book Design Patterns, co-published by GoF, provides many solutions to common problems in object-oriented software design. These models have been around for quite a long time and have proved very useful in many cases.
Monomer mode
There is only one instance of a particular class. This means that the second time you create a new object with t ...
Posted by ddragas on Sun, 06 Oct 2019 16:10:42 +0200
2. Analysis of spring-import tags;
Links to the original text: https://my.oschina.net/u/1590001/blog/268225
For spring configuration file writing, I think that for people who have experienced huge projects, there is tha ...
Posted by raquelzinha on Sun, 06 Oct 2019 00:44:48 +0200
Eureka Actual Warfare-2 [Building Multi Zone Eureka Server]
Public dependence in engineering pom
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<spring-cloud.version>Finchley.REL ...
Posted by badal on Sat, 05 Oct 2019 22:04:58 +0200
Why margin:0;padding:0 still has a gap
In some cases, we set margin:0;padding:0, and then find that there are still gaps between elements, but check the style, box model and so on, and find that there is no problem.
Why is that?
Cause: There are newlines or spaces between two inline elements.
The code is as follows: (first CSS style, ...
Posted by Loki_d20 on Fri, 04 Oct 2019 21:09:00 +0200