Realize real-time display of progress bar such as file export and write

  1. First you need to download the progress bar plug-in. The URL is as follows http://www.jq22.com/jquery-info436 2. Copy the JS and CSS files in the extracted folder to the corresponding CSS and JS files in the project. 3. Introducing js and css <link rel="stylesheet" href="css/jquery.circliful.css"/> <scrip ...

Posted by DeFacto on Thu, 02 Jan 2020 03:22:21 -0800

Wechat applet - Basic Concepts

app.js It is the initialization script of the program, in which you can monitor the life cycle of the applet, apply for global variables, call the api, etc. Use App() to register an applet in this script, and you cannot register multiple applets. App({ onLaunch: function(){},//Monitor initialization onShow: function( ...

Posted by Loathor__Healer on Wed, 01 Jan 2020 05:54:43 -0800

JavaScript serializes form as object and JSON

When the front-end submits parameters to the back-end, they are usually passed in json format, while the controls that receive input parameters usually use form forms. Is there any way to sequence the parameters in form directly into objects? Here is a method: function deserializeJSON($form) { var res = {}; ...

Posted by mjdamato on Wed, 01 Jan 2020 03:26:41 -0800

Vue core technology-45,Axios introduction and simple use

I. Preface In vue1.x, the official recommended HTTP request tool is Vue resource, but vue2.0 changed the recommended tool to axios After Vue 2.0 is added, Vue resource will not be updated any more, so HTTP request is introduced to axios axios and Vue resource are used in a similar way, Note: res returned by axios interface i ...

Posted by reloj_alfred on Tue, 31 Dec 2019 23:18:00 -0800

Development of mobile App based on html5 plus + Mui (1)

Use Html5 plus + Mui for mobile App development. It's been a while. I'm free these days to make an information App to share with you. Today's main sharing homepage is realized. First, let's see the following effects: This interface is mainly divided into: title, content classification list, search and setting buttons. Title <header c ...

Posted by cottonbuds2005 on Tue, 31 Dec 2019 22:29:30 -0800

Python note day36 (concurrent) | multiprocess, join(), daemons, locking

1. Multi process import os import time from multiprocessing import Process def func(args,args2): print(args,args2) time.sleep(3) print('Child process :', os.getpid()) print('Parent of child process :', os.getppid()) print(12345) if __name__ == '__main__': p = Process(target=func,args=('parameter','Pa ...

Posted by hoffmeister on Tue, 31 Dec 2019 18:35:05 -0800

Problems encountered by Cordova when using QR scanner plug-in

In fact, the qrscanner plug-in is not a big problem. The only problem is that on some mobile phones, the camera preview cannot be started when it is first opened. To be exact, the camera preview has been opened, but it is blocked by a layer of white. After a long time of research, no reason has been found, but the solution has ...

Posted by jcanker on Tue, 31 Dec 2019 17:42:20 -0800

saltstack -- online environment (1)

Install mysql on 11 yum install mariadb mariadb-server -y   Add in mysql configuration file my.cnf init_connect='SET collation_connection = utf8_unicode_ci' init_connect='SET NAMES utf8' character-set-server=utf8 collation-server=utf8_unicode_ci skip-character-set-client-handshake   Start mysql after configuration Set the password befor ...

Posted by crusty_php on Tue, 31 Dec 2019 15:45:00 -0800

JavaLib | Result unifies your API (2)

Introduction JavaLib has implemented the Result module for a long time, and I've been using it, but that's for the public API interface. If the back-end developers write the API interface to the front-end like that, it's very troublesome, so they decided to rewrite it early. I also refer to a lot of people. Looking at the Spring Builder mode, i ...

Posted by willeh_ on Tue, 31 Dec 2019 10:03:47 -0800

RN + head navigation bar + pull-up refresh pull-down load + list + details

- 1. * create head navigation bar * import React from "react"; import { createTabNavigator } from "react-navigation"; import List from "./List"; //Add a reuse const Good = () => { return <List />; }; const Share = () => { return <List />; }; const Ask = () => { return <List />; }; const Jo ...

Posted by fahhem on Tue, 31 Dec 2019 09:19:36 -0800