js realizes the function of image upload and deeply understands the principle of image upload
js realizes the function of uploading pictures. The effect is to see the pictures first to suppress the shock
Picture upload.gif
Principle:
Structure part: input tag
You may not have noticed that the input tag has the same effect.
1. The type attribute is file
2.accept is the file format allowed to be selected (if it is a pic ...
Posted by fri3ndly on Fri, 06 Dec 2019 10:50:04 +0100
Website access QQ login Tencent open platform
Complete developer certification
Apply for Tencent open platform
Use qq login to complete the realName authentication, click to create application
Create site app
Fill in relevant information
It is very important to fill in the callback field. If you fill in the wrong code, you will see 100010[QQ login] login common error code
Front end
This is ...
Posted by nostradamus on Fri, 06 Dec 2019 09:50:56 +0100
First use of Retrofit
Rxprofile library is a well written network framework library, which is imported into its own project as a local Module first.
1. Most of its initialization operations are completed in user-defined application s, such as:
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
...
Posted by SFDonovan on Thu, 05 Dec 2019 21:51:52 +0100
How many positions does fastjson customize serialization have?
This article describes the various operations of fastjson custom serialization.
1. What is fastjson?
fastjson is Alibaba's open source JSON parsing library that parses strings in JSON format, supports serialization of Java Bean s to JSON strings, and can also deserialize from JSON strings to JavaBean s.
2. How to Use
Add the following maven d ...
Posted by kir10s on Thu, 05 Dec 2019 21:42:54 +0100
Configure kubectl client tools
#(1) generate client certificate and private key file on the springboard;
#Generate client certificate signing request
cd /temp/ssl
cat > client-csr.json <<EOF
{
"CN": "client",
"hosts": [],
"key": {
"algo": "rsa",
"size": 2048
},
"names": [
{
...
Posted by guilhenfsu on Thu, 05 Dec 2019 11:22:09 +0100
Several ways to export and import redis data
Several ways to export and import redis data
1 environmental description:
192.168.1.101 node1 redis source instance
192.168.1.102 node2 redis target instance
192.168.1.103 node3 any linux system
2 redis dump mode
2.1 installation of RVM
Redis dump needs to use ruby, and the maximum version of ruby that can be installed in centos environment ...
Posted by eddie_twoFingers on Thu, 05 Dec 2019 07:02:06 +0100
Wechat interception detection
background
Due to the strict restrictions on wechat, domain names are inadvertently determined to be induced to share. Therefore, the company decided to investigate a set of stable, fast and high accuracy wechat domain name interception detection query interface.
The development team tried Google search for a while and found that they rarely sh ...
Posted by EXiT on Thu, 05 Dec 2019 03:59:47 +0100
Share the SDK of cloud function short message platform developed by TCB router
In the last article, we shared how to use the cloud function to develop hazelnut SMS( http://smsow.zhenzikj.com)SDK, due to the limitation of wechat on the number of unpaid cloud functions, this method has defects. After improvement, TCB router is used as the route, so only one cloud function needs to be integratedDownload sdk and demo: http:/ ...
Posted by fahad on Wed, 04 Dec 2019 09:30:31 +0100
Partial refresh of HTML page
/. event response refresh: refresh only when there is a request
1. Get HTML elements through JS HTML DOM or jQuery, listen for page events through DOM or jQuery, and get user requests;
2. Submit the user request to the server through Ajax, and the server will return the result after processing, and then Ajax will receive the data;
3. Load the d ...
Posted by meshi on Tue, 03 Dec 2019 11:12:59 +0100
c + + project configuration of vscode under linux
Get ready
install vscode , you can download the deb package directly for installation, install the C/C++ for Visual Studio Code plug-in after completion, and restart after installation (no need to restart after the latest version 1.3).
Generate directories and files
Create a new folder [test] and a new file helloworld.cpp. The contents of the f ...
Posted by asterinex on Mon, 02 Dec 2019 03:01:49 +0100