Notes on key attribute in v-for loop of Vue
When Vue is updating the rendered element list with v-for, it defaults to the in place reuse policy. If the order of data items is changed, Vue will not move DOM elements to match the change of data items, but simply reuse each element here, and ensure that it displays each element that has been rendered under a specific index. ...
Posted by hansman on Fri, 03 Jan 2020 19:44:48 +0100
[Json] common operation records of fastjson and jackson
This article only records some common operation methods of fastjson and jackson, but not for comparison. There are a lot of comparison articles written on the Internet.
1. Object to Json string
// fastjson
String objStr = JSON.toJSONString(obj); // The default attribute to be removed ...
Posted by Jack_Slocum on Fri, 03 Jan 2020 05:10:22 +0100
iOS category add attribute
We can add attributes to iOS classification through runtime
To add attributes, remember a few keywords, 1
1. First, we use @ property to declare a property in. h like a normal class
///xxx+CH.h. here is the. H file of CH classification of xxx class
@interface xxx (CH)
@property (nonatomic ,strong) NSStri ...
Posted by zysac on Wed, 01 Jan 2020 21:28:37 +0100
Manual wheels: write a log frame
Manual wheels: write a log component
Intro
There are many log components, such as log4net / nlog / serilog / microsoft.extensions.logging, etc. How to switch log components without modifying the code, just switch different loggingProvider s, reduce the cost of switching log framework, and write a log component for different log framework in thi ...
Posted by gt500pwr on Wed, 01 Jan 2020 11:20:46 +0100
[help] the newcomer asked about KVO, thank you
Recently, I studied runtime. I saw a great God written runtime on the Internet to manually implement KVO. I tried it myself
But there are some problems. I want to ask you to post for the first time.
Structure:
Listen for the name of the people (inherited from the NSobject) class in the ViewController.
Monitor class NSObjec ...
Posted by TGLMan on Wed, 01 Jan 2020 01:50:55 +0100
spring learning notes xml configuration
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.sp ...
Posted by ffsja on Tue, 31 Dec 2019 19:21:28 +0100
JavaScript string de duplication
JavaScript string de duplication
Method: write on the prototype chain, use the characteristics that the attributes of the object cannot be the same to de duplicate, and add each character of the string as the attribute name of the object (an object cannot have two attributes with the same name).
Code implementation:
// Enc ...
Posted by ocpaul20 on Tue, 31 Dec 2019 08:32:42 +0100
The PowerDesigner view displays Comment comments
Hyperlink of the original text, blogger address: http://blog.csdn.net/difffate. https://blog.csdn.net/difffate/article/details/77945239
The default columns displayed by PowerDesigner are Name and type, as shown below:
Now you need to show the Comment column to make the ER diagram clearer. However, checking Comment in PowerD ...
Posted by dig412 on Sat, 28 Dec 2019 19:50:58 +0100
vue 2.0 shopping cart function implementation details (according to MOOC video)
Train of thought:
Obtain the background data through VueResource, and check whether the debugging of browser console is successful. Use the hook function mounted to ensure that when all DOM are mounted on the page, request again
Write the layout of the page, set the interface, and render the page through v-for
Data format of ...
Posted by tinkertron on Fri, 27 Dec 2019 19:38:23 +0100
A comprehensive understanding of Java atomic variable classes
📦 this article and sample source code have been filed in javacore
1, Introduction to atomic variable class
Why atomic variable classes are needed
To ensure thread safety is an important problem to be solved in Java Concurrent Programming. Java ensures the consistency of multithreaded data by three features: atomicity, visibility and orderlin ...
Posted by phrozenflame on Fri, 27 Dec 2019 12:04:02 +0100