The use of submit bar component in Vant Weapp
This paper introduces some problems that should be paid attention to when using the submit bar component in the development of Vant Weapp applet. Pit to pit, first on the sample code bar, from simple to complex order.
main.js code
main.json code
index.vue code
<template>
<view>
<van-panel title="Basic usage">
&l ...
Added by joeysarsenal on Sun, 01 Dec 2019 19:46:46 +0200
Wechat applet custom pop-up
I believe that everyone is familiar with the small program. It can be used as soon as you scan the code. Although the sparrow is small, it has all five internal organs.
Introduction to wechat applet
The host environment of the applet is webview, which is relatively fast to learn. Wechat encapsulates some API s for js to call the na ...
Added by nevillejones on Sun, 01 Dec 2019 17:00:48 +0200
Crawling Douban movie information
Yesterday, I wrote a little reptile, which crawled the film information of 2017 mainland China on Douban. The website is Douban film , crawled the movie name, director, screenwriter, star, type, release time, length, score and link, and saved them in MongoDB.
The IP address of the machine used at the beginning, without proxy IP, can't receive d ...
Added by LHBraun on Sun, 01 Dec 2019 16:55:20 +0200
docker info command request process of docker v18.09.4-rc1 series source code interpretation
Previous process diagram
It's only for you to sort out and understand the latest code process. Some details will not be dug in1. Enter the client to receive the code block, and the runInfo method returns the contentgithub.com/docker/cli/cli/command/system/info.go
// NewInfoCommand creates a new cobra.Command for `docker info`
func NewInfoComm ...
Added by plazz2000 on Sun, 01 Dec 2019 08:53:02 +0200
Cache MEMCACHE php calls
In the project, when large amount of access is involved, reasonable use of cache can reduce the pressure of database and improve the user experience. That is, under the premise of non real-time demand, for a short period of time (several seconds), the data used to display is obtained from the cache, instead of directly reading the database, whi ...
Added by errtu on Sat, 30 Nov 2019 22:00:41 +0200
Encapsulation of applet request
File
First, you need to encapsulate a request, know the required parameters, and how to call it.
The important parameters in the request are url data (the default request method here is post)
Chain operation in the way of promise
First step
Build a file api.js of a common function
Create a function myRequest and two parameter ...
Added by znouza on Sat, 30 Nov 2019 17:26:41 +0200
get request of axios - Code section
get method request of vue + elemetUI + axios
bug code example:
I. < script > · some codes
data() {
return {
resumes :[],
xss: [],
dialogShareFormVisible: false, // Pop up box: new share will not be displayed by default
}
},
// =========================================================== ...
Added by Brink Kale on Sat, 30 Nov 2019 07:44:43 +0200
Authorized login of applet - get unionId
Now you need to click the button to open the authorization pop-up box. Button's open type = "getUserInfo"
<button open-type="getUserInfo" @getuserinfo="bindGetUserInfo" class="btn">Determine</button>
The code is as follows: (code style, please improve according to your own design).
<view class="page ...
Added by fean0r on Thu, 28 Nov 2019 19:44:13 +0200
Python crawls the cat's eye movie "the unknown" and analyzes its data
Preface
The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling.
Author: Luo Zhaocheng
PS: if you need Python learning materials, you can click the link belo ...
Added by Vball on Thu, 28 Nov 2019 15:51:22 +0200
Ten minutes to get started status management tool Mobx
What is Mobx
A simple and expandable state management tool
install
npm install mobx --save
Core concept
State
State is the data that drives the application, and the change of state will affect the view.
import {observable, autorun} from 'mobx';
var todoStore = observable({
/* Some observed states */
todos: []
});
Derivations (derivativ ...
Added by cityguru on Thu, 28 Nov 2019 13:11:01 +0200