Tag:chain

  • Tools for source code analysis of Android jar / Library

    Time:2021-3-6

    catalog:Source code analysis of Android jar / Library  Bolts: effect:     It is used to chain execute cross thread code and transfer data Chestnut: Task.call(new Callable() { @Override public Boolean call() throws Exception { return true; } }, Task.UI_THREAD_EXECUTOR); Task.callInBackground(new Callable() { @Override public Boolean call() throws Exception { return false; } }); Task.callInBackground(new Callable() { […]

  • Interview questions: sorting out

    Time:2021-2-18

    1. Understanding of CSS optimization (e.g. code level) 2. Understanding of ES6 (let const variable / arrow function)/ promise.all Modularization and implementation of concurrent / ES6 node.js Differences in modularity) 3. The principle of jQuery chain call / chain programming 4. Secondary encapsulation of element 5. What kinds of JS inheritance 6. What are the […]

  • 30 minutes, let you thoroughly understand the promise principle

    Time:2021-2-15

    Original link preface A while ago, I recorded some common usages of promise. This article goes further to analyze how the rule mechanism of promise is implemented. PS: This article is suitable for people who already know the usage of promise. If you don’t know much about it, you can move on to my last […]

  • Go carbon version 1.2.2 has been released, adding time setting and time difference comparison functions

    Time:2021-2-13

    Carbon is a lightweight, semantic and developer friendly golang time processing library, which supports chain call, lunar calendar, Gorm, xorm and other mainstream orm If you think it’s good, please give it to a star github:github.com/golang-module/carbon gitee:gitee.com/go-package/carbon Installation and use //Using GitHub Library go get -u github.com/golang-module/carbon import ( “github.com/golang-module/carbon”) //Using gitee Library go get […]

  • Using mobile component library vant3 in vue3

    Time:2021-2-7

    Vant3 Chinese documenthttps://vant-contrib.gitee.io…Introduction:The creation of Vue project is introduced in the previous articleThe installation of vant can be NPM install vant or Vue UIToday, we start to use vant to develop our own mobile terminalintroduce //I chose global install. introduce import Vant from ‘vant’; import ‘vant/lib/index.css’ installIn previous Vue, you might have thought of using […]

  • Principle analysis and implementation of promise / deferred mode

    Time:2021-2-6

    1、 What is promise / deferred mode Promise / deferred mode is an implementation of promise asynchronous operation based on promise / A or its enhanced version of promise / A +. The wide use of asynchrony makes callbacks and nesting appear, but once deep nesting occurs, it will make the coding experience quite unpleasant, […]

  • Vue basic syntax

    Time:2021-1-22

    binding V-bind is called instruction. The instruction is prefixed with V- {{}} v-bind=”” <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Title</title> </head> <body> <! — view layer template — > <!–<div id=”app”>–> <!– {{message}}–> <!–</div>–> <div id=”app”> <span v-bind:title=”message”> Hover the mouse for a few seconds to view the prompt information of this dynamic binding! […]

  • How to chain program from PHP, promise, Android and IOS code

    Time:2021-1-20

    Chained programming or chained writing is to link multiple methods (functions) together into a code by dot (.) or (- >) and other symbols, which can not only enhance the readability of the code, but also operate and change the properties and state of the object every time. No matter the back-end language or front-end […]

  • Summary of promise chain call characteristics

    Time:2021-1-15

    I believe you front-end partners should be very familiar with promise. In daily work, it is a thing that will be used 100%. Unless you are still using callback to solve asynchronous problem, I admire it too much. Let’s get to the point. To make a statement in advance, the following code is implemented in […]

  • Go carbon version 1.2.4 released, new series time comparison method

    Time:2021-1-14

    Carbon is a lightweight, semantic and developer friendly golang time processing library, which supports chain call, lunar calendar, Gorm, xorm and other mainstream orm If you think it’s good, please give it to a star github:github.com/golang-module/carbon gitee:gitee.com/go-package/carbon Installation and use //Using GitHub Library go get -u github.com/golang-module/carbon import ( “github.com/golang-module/carbon”) //Using gitee Library go get […]

  • Circular serial promise

    Time:2021-1-14

    In business development, we often encounter scenarios that require serial promise. If we use the common for loop writing method, we can’t achieve the desired effect. The solution is to chain assemble promise. The code is as follows: function waitFor(time) { return new Promise(resolve => { setTimeout(() => { resolve(); }, time); }); } function […]

  • The significance of swift UI to flutter; the return of JSCONF 2019; the future belongs to declarative programming experience technology selection issue 4

    Time:2021-1-14

    This is the 4th issue of ant financial service experience technology selection. The content of this issue includes original selection, ant front-end dynamic and industry dynamic. I hope you like it! Ant front end dynamic Ant Design https://github.com/ant-design… In early September, ant design recruited three outstanding community collaborators @ yoyoyo837 @ shaodahong @ orzyyyy, believing […]