Back end interaction
First step
(1) Form login settings and form validation
1> Set click event - > get the password value of the account entered in the form - > use regular expression to verify the form - > send ajax request - > enter the background - > Import configuration file - > receive the data sent by ajax - > ...
Posted by debigmac on Sun, 09 Feb 2020 12:00:16 -0800
Python 3 regular expression and JSON
1, On regular expression
1. Definition: it is a special character sequence, which can help to detect whether a string matches the character sequence we set.
2. Function: it can quickly retrieve text and replace text.
3. scenario:
1. Check whether a string of numbers is a telephone number
2. Check whether a string conforms to e-mail format
3. Re ...
Posted by GarroteYou on Sun, 09 Feb 2020 06:16:50 -0800
Smooth restart of GoLang service
elicit questions
In the process of developing with go, if we modify the code, it is control+c that kills the running process, and then go run or go build that runs. When our project goes online, killing the process directly will lead to online service interruption, which is absolutely not allowed in ...
Posted by benrussell on Sat, 08 Feb 2020 03:31:02 -0800
axios in vue
axios
promise based on http client for browser and nodejs
characteristic
Browser side initiates XMLHttpRequests request
http request from node
Support Promise API
Listen for requests and returns
Conversion request and return
Cancellation request
Automatically convert json data
Client support mitigation
install
Using npm:
npm install axios -- ...
Posted by mjahkoh on Fri, 07 Feb 2020 10:38:51 -0800
Some problems need to be fixed when using ueditor
Original address: Some problems need to be fixed when using ueditor
1. Adjust the order of pictures to be uploaded
Modify: dialogs/image/image.js
The last segment of line 718:
uploader.on('uploadSuccess', function (file, ret) {
var $file = $('#' + file.id);
try {
var responseText = (ret._raw || ret),
...
Posted by batman on Fri, 07 Feb 2020 10:13:12 -0800
K8S single master deployment 3: apiserver + controller manager + schedule
All the following operations are carried out at the master end
Server role assignment
role
address
Installation components
master
192.168.142.220
kube-apiserver kube-controller-manager kube-scheduler etcd
node1
192.168.142.136
kubelet kube-proxy docker flannel etcd
node2
192.168.142.132
kubelet kube-proxy docker flannel etcd
1, A ...
Posted by wdallman on Fri, 07 Feb 2020 08:46:14 -0800
What is Redux, why and how to use Redux
1. What is Redux
Official explanation: Redux is a predictable state container for JavaScript apps. This means that Redux is a predictable state container for js applications
2. Why use Redux
The following illustration shows how parent-child components communicate when Redux is not used and when Redux is used
In the absence of Redux, if co ...
Posted by Zssz on Fri, 07 Feb 2020 08:15:44 -0800
K8S - ETCD deployment
Role assignment:
Environmental deployment
All virtual machines have turned off the firewall and selinux core protection functions
Practical operation
Build working directory to store binary software package
[root@master ~]# cd /
[root@master /]# mkdir k8s
Install ETCD database (three copy mechanism)master (download the ca Certificate creatio ...
Posted by coolphpdude on Fri, 07 Feb 2020 07:05:24 -0800
Serialization operation of Django
Written in front
Recently, I was trying to drum up wechat applets. I wanted to use Django as the back end to display data in wechat applets. When I write Django, I usually directly throw the QuerySet object to the template and then render it. But in the wechat applet, this object cannot be accepted. Y ...
Posted by JPark on Fri, 07 Feb 2020 07:01:23 -0800
IDEA creates Spring Boot + MySql + mybatis project
1. Create a new Spring Boot project
The specific steps are as follows
Select the appropriate dependency:
Under src/main/resources of the spring boot project, the application.properties file exists by default. This is the configuration file of the spring boot project. Almost all related configurations ...
Posted by dennissanche on Fri, 07 Feb 2020 05:21:37 -0800