Realization of wave line and cube by css

In recent projects, it is necessary to draw a wavy line effect, which is realized by linear gradient, that is, draw a circle, and then use the background color to cover part of the circle;Realization of cube with css3 attribute perspective and rotation 1. Realization of wavy line by CSS html <div class="card-list"> <div class="wave ...

Posted by Getran on Sun, 15 Dec 2019 07:02:44 -0800

vue application without scaffold

There are not only many modular projects in the work, but also only one or two activity pages similar to filling in information to participate in activities. At this time, you can return to the previous three swordsman mode, and reference vue.js in index.html for development. Key points: Babel Polyfill needs to be introduced to transform the c ...

Posted by Threepwood on Fri, 13 Dec 2019 07:54:04 -0800

Solutions to asynchronous programming -- promise and await

What is promise? Promise, in short, is a container that holds the results of an event (usually an asynchronous operation) that will end in the future. Syntactically, promise is an object from which messages for asynchronous operations can be obtained. Promise provides a unified API, and all kinds of asynchronous operations can be processed in t ...

Posted by colemanm on Wed, 11 Dec 2019 20:03:15 -0800

Come on! Complete Vue components in one article!

By Jeskson Source: front end tavern of dada Overview of Vue components What is a component? Understand the analysis of component objects, the data properties of Vue components, and what is the principle of props to transfer data. Events Communications How to understand parent-child component event communication, and how to deal with non parent ...

Posted by verdrm on Wed, 11 Dec 2019 07:10:37 -0800

AMD of JavaScript modular programming

Simply put, AMD is the abbreviation of "Asynchronous Module Definition", which means "Asynchronous Module Definition". It loads the module asynchronously, and the loading of the module does not affect the running of the subsequent statements. All statements that depend on this module are defined in a callback function, which ...

Posted by chaser7016 on Tue, 10 Dec 2019 02:34:53 -0800

Simple snow effect with canvas

First, create a new html file, set the background of the body to the dark blue of the sky, and create a canvas. The operation logic of canvas is put in snow.js: <!DOCTYPE html> <head> <style> body { background-color: #102a54; } </style> </head> <body> <canvas id='sky'></canvas> ...

Posted by ungovernable on Mon, 09 Dec 2019 16:01:50 -0800

AngularJS integrated wangedit rich text editor

Recently, the project requirements built with AngularJS2(ng alain) need rich text. Many of them are found online, either too heavy or without detailed integration steps. Below is a detailed list of how I can integrate wangedit into my project (project name myPro). Specific operation steps Operation steps reference: https://github.com/fengnovo/ ...

Posted by Hellusius on Mon, 09 Dec 2019 13:34:16 -0800

Text wrapping of canvas

When the width of canvas is not wide enough, the canvas will not wrap automatically. You can use the following code to deal with it <body> <canvas id="canvas" width="200" height="200" style="background:pink;"></canvas> <script> function draw() { var canvas = document.getElementById("canvas"); ...

Posted by belphegor on Mon, 09 Dec 2019 09:06:39 -0800

Learning notes for new students of online excel Development Workbook

Form control is often used in front-end pages. To facilitate the design and filling of forms, today we try to use a pure front-end form control. Control download address: https://www.grapecity.com.cn/... Free online Excel: https://demo.grapecity.com.cn...   Initialize Spread first var spread = new GC.Spread.Sheets.Workbook(document.getEleme ...

Posted by NotVeryTechie on Mon, 09 Dec 2019 06:27:22 -0800

The use of Vue swiper

In the normal login interface, we can see the verification code. The function of verification code is to detect whether people are operating, to prevent non-human operations such as machines, and to prevent the database from being easily broken. Verification code is usually written in back-end languages such as PHP and java. But in the front en ...

Posted by ktsirig on Mon, 09 Dec 2019 00:57:34 -0800