Dependency Injection of AutoFac+Actual Mvc, Api and. NET Core
Series catalogue
Chapter 1 | Theoretical Basis + Actual Console Programming for AutoFac Injection
Chapter 2 | The Use Skills of AutoFac
Chapter 3 | Actual Asp.Net Framework Web Program Implementing AutoFac Injection
Chapter 4 | Implementation of Dependency Injection with DI in Actual Asp.Net Core
Chapter 5 | Two Ways of Introducing AutoFac int ...
Posted by ialsoagree on Thu, 18 Jul 2019 03:43:22 +0200
Implementation principle of KVO
Overview of kvo
Kvo, also known as Key-Value Observing, provides a way for an object to be notified when an attribute of an object changes, allowing the object listening for the change in the value of that attribute to respond to actions through kvo.
kvo implementation principle
How does kvo implement notification objects, in fact, through the ...
Posted by atdawgie on Wed, 17 Jul 2019 19:36:17 +0200
JS-class-inheritance and development model
Learn more about how js inherits
1 ES5 implementation (pre-2015 standards)
The reuse of js objects is accomplished by prototype chains. Function methods are stored in prototype prototype in u proto_ of subclasses. Constructors in constructor s must use the new keyword
1.1 Prototype Chain
function Parent () {
this.name = 'haha';
...
Posted by AaZmaN on Wed, 17 Jul 2019 18:51:20 +0200
Yii2 Plugin Series - kartik\detailDetailView
Preface
The DetailView plug-in, which combines the display and editing of custom fields, has been studied for some time. The DetailView plug-in itself is not so flexible and must be revamped to achieve this effect.There are both display and edit DetailView plug-ins, which can be done simply by adding custom fields.But how do you add it?Since it ...
Posted by torrentmasta on Wed, 17 Jul 2019 18:18:33 +0200
ios page overflow:scroll; slow scroll and mobile web page, soft keyboard pop-up, input box is obscured
In mobile web development, you will find that when you set an overflow:sroll attribute to an element, when you slide the page on the ios side, the response of page scroll is very slow, there is a kind of Katon feeling, but it scrolls very fast on the Android side, so some people think of using iscroll.js plug-in, so that there is overflow:scrol ...
Posted by AnAmericanGunner on Wed, 17 Jul 2019 00:56:47 +0200
web Front-end - Exploring HTML5 (3) FileReader
brief introduction
In HTML5, the file selection tag file adds the following two attributes:
- multiple: Setting the current element allows multiple files to be selected.
- accept: Sets the MIME type or suffix name that the current selector can choose.
<input type="file" multiple name="" id="myfilePhoto" value="" accept="image/jpg, ima ...
Posted by maplist on Tue, 16 Jul 2019 21:43:54 +0200
JavaScript sorting, not just bubbles
I highly recommend you to read a book on gitBook.- Top Ten Classic Sorting Algorithms: https://sort.hust.cc/ In this paper, the motion chart and demonstration code are all in it.
Sorting is an inevitable requirement for programming. Front-end is no exception, although not many, but you will certainly encounter.
But when it comes to sorting, the ...
Posted by ashly on Tue, 16 Jul 2019 19:25:07 +0200
Data Structure of 1 Java Learning Notes-Single Linked List
Two days ago, in the process of job interview, I was asked about binary tree and algorithm related by a big data company. I didn't learn it well in college. After several years of work, I usually use less, but I can't write it down.
Because work always starts with Array, ArrayList, HashMap and HashSet, no matter what type, as if there were no ...
Posted by janey on Tue, 16 Jul 2019 00:41:36 +0200
Smart Template Engine for Front-end Learning PHP
Previous remarks
For PHP, there are many template engines to choose from, but Smart is a PHP-based template engine, which is the most famous and powerful in the industry. Smart, like PHP, has a rich library of functions. It can be used directly from counting words to automatic indentation, text wrapping and regular expressions. If it is not en ...
Posted by MrBillybob on Tue, 16 Jul 2019 00:24:44 +0200
array of javascript
Create arrays
Use literal grammar and Array() constructors.
Literal
Using array literals is the easiest way to create arrays. You can use all the elements in square brackets to separate them.
var s = [];//Empty array
var s = [1,1,1,1,1]//An array with five values.
Although javascript arrays are ordered lists of data in other languages, ...
Posted by bigfatpig on Mon, 15 Jul 2019 19:52:00 +0200