Category:WEB Front End

  • Centos7 uses docker to deploy servers with one click

    Time:2020-10-27

    Docker is delicious Check your system version before using docker cat /etc/redhat-releaseThe following table directly shows docker’s requirements for several mainstream Linux system versions operating system Supported system versions CentOS CentOS 7 Debian Debian Wheezy 7.7 (LTS) Debian Jessie 8 (LTS) Debian Stretch 9 Debian Buster 10 Fedora Fedora 26 Fedora 27 Ubuntu Ubuntu Trusty […]

  • Element rate score establishment and use

    Time:2020-10-27

    The use of scoring component in El table display When the score is greater than 0, it is displayed when it is 0, and no score is displayed //The score of scorecolors in data is 12 3 45 Scorecolors: [‘#99a9bf’, ‘#f7ba2a’, ‘#ff9900’], // equivalent to {2: ‘#ාාාාාාාාාාාාා#ා#ා##ා#ා##ා##      reference resources: Official website:https://element.eleme.cn/#/zh-CN/component/rate#rate-ping-fen Element rate […]

  • Autorun and observe functions of mobx response to new values

    Time:2020-10-27

    Autorun response function, commonly used for printing log, persisting or updating UI code var numbers = observable([1,2,3]);var disposer = autorun(() => console.log(sum.get())); //Output ‘6’ numbers.push(4); //Output ’10’ disposer(); numbers.push(5); //No more values are output. Observe can listen to the new and old values newvalue and oldvalue import {observable, observe} from ‘mobx’; const person = observable({ […]

  • SSH online mall using Ajax to complete the user name asynchronous verification

    Time:2020-10-27

    When the little partner is surfing the Internet, we need to download or watch some video materials, or when we are browsing Taobao, we need to register a user. When we fill in all kinds of information and click OK, the user name already exists. The editor thinks, why? When we fill in the user […]

  • CSS is horizontally centered and limits the maximum width implementation

    Time:2020-10-27

    A CSS layout and style problem, how to balance the horizontal center and limit the maximum width In recent work, I encountered a problem like this: 1. Background Horizontal layout of three or two columns, and the content in one column is changeable; When the content is too little, the whole needs to be displayed […]

  • Implementation code example of Vue + ABP wechat code scanning login

    Time:2020-10-27

    Recently, the system needs to use wechat code scanning login, according to wechat official documents and online search related literature. Share it with those who need it, as a note of your own. The back-end system is based on ABP, so part of the code directly uses the interface of ABP, and the code copy […]

  • How to use HTML area image hotspots

    Time:2020-10-27

    The < area > tag is mainly used for image map, through which the active area (also known as hotspot) can be set in the image map, so that when the user’s mouse moves to the specified action area and clicks, it will automatically link to the preset page. Its basic grammatical structure is as […]

  • Implementation of modal box in amazeui

    Time:2020-10-27

    Compared with the “ratchet” modal box (click to open the link), the modal box of amazeui is closer to an alert (), which is not suitable for carrying too much content. However, its advantage is that it can be controlled by JS, and the ratchet can only be opened through the super link a tag. […]

  • Analysis of the sequence of returned data in Ajax request

    Time:2020-10-26

    This paper analyzes the order of the returned data of Ajax request. For your reference, the details are as follows: After Ajax requests a URL, the array is in the following format after PHP back-end processing: Copy codeThe code is as follows: $a = array( ‘-1’=> 10 ,’-3′ => 2, ‘0’ => ‘5’ ,’-2′ => […]

  • Example of JavaScript Animation: derivation of dots

    Time:2020-10-26

    Consider the following curve equation:           R=S*sqrt(n)           α=n*θ           X=R*SIN(α)           Y=R*COS(α)     Where s and θ can specify a fixed value. Take a total of 1000 values from 0 to 999 for N cycle. For each n, a coordinate value (x, y) is obtained according to the given coordinate equation. Then a circle with […]

  • Will you like some liver this month?

    Time:2020-10-26

    Dandelion · jelly technical weekly Vol.26 In October this year, I don’t know how many new entries have been added to todo list. You may have prepared vue3, webpack 5 and react v17.0 RC. However, in October, it is far more than these items that are worth trying. NPM cli prompts you to pass thenpm […]

  • Solve the problem of using iframe tags to widen on some iPhones

    Time:2020-10-26

    Iframe widens on some iPhones As shown in the figure below:     Baidu checked a lot and tried a lot. The final solution is as follows: First: I use Vue HTML code: CSS code: .iframeCss { min-width: 100%; Width: 3.75rem! Important; // setting the iframe width is particularly important }   Javascript code: //The […]