Using Koa2 to build mockserver

preface This article is mainly for the front-end development engineers to explain how to use Node.js Framework Koa2 and mockjs build a set of data simulation services to provide simulation data for front-end services. Simple operation can greatly improve development efficiency. Problems encountered in actual combat Scene 1: schoolmate A is hap ...

Posted on Thu, 11 Jun 2020 04:36:04 -0400 by mesh2005

Using JavaScript to access your device camera

Hello everyone, in this blog I will show you how to use JavaScript on a web page, and support many browsers without additional libraries to access the current device camera. How to access the camera We use JavaScript Media Stream API To access the user's camera (not only on the computer, but also on t ...

Posted on Thu, 11 Jun 2020 03:01:16 -0400 by siminder

JS series: JS ternary operator

Ternary operator Grammar: conditions? Set up to do things: not set up to do things; < = > equivalent to a simple if/else judgment (simplified writing) var num = 12; if(num>10){ num ++; }else { num--; } => Equivalent to a ternary operator: num > 10? num++ : num--; exceptional case: //=>If a ...

Posted on Wed, 10 Jun 2020 23:51:11 -0400 by AndieB

Summary of three cross-domain scenarios in Spring Boot

Article Directory 1. What is cross-domain 2. Solutions 2.1 Problems 3.SpringSecurity 3.1 Mode 1 3.2 Mode 2 4.OAuth2 5. Summary Sonco has written about this cross-domain issue before, but I recently received some questions from my little buddies that made me realize that the previous summary was ...

Posted on Wed, 10 Jun 2020 20:48:44 -0400 by scripterdx

v-model, components, modularization to get started with Vue

I. Use and Principles of v-model 1. Basic use of v-model The v-model is used to practice the two-way binding of that form element and data <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> &lt ...

Posted on Wed, 10 Jun 2020 20:46:27 -0400 by paegn

Universal Paging Hardcover Version

Universal Paging Hardcover Version Preface Ideas and Steps for Universal Paging Final results All required class structures and packages! [Insert picture description here] (Https://img-blog.csdnimg.cn/20200610235334613.png?X-oss-process=image/watermark, type_ZmFuZ3poZW5naGVpdGk, shadow_10, text_AHR0 ...

Posted on Wed, 10 Jun 2020 12:28:39 -0400 by _giles_

Hidden scroll bar - > El scroll bar

What is El scrollbar? Element UI, as a set of well-known UI component library of Vue, is almost known by people playing Vue. Recently, when looking at the source code of element, I found an interesting phenomenon. How can I add an EL scrollbar component to autocomplete recommendations?After some understanding, it turned out to be a scroll bar c ...

Posted on Wed, 10 Jun 2020 02:13:53 -0400 by raja9911

Build front end Lint workflow from scratch (2020 handlebar)

Build front end Lint workflow from zero Eslint + prettier + husky + lint staged + typescript + eslint config alloy to ensure the quality of project code Inherit the concept of plug-in and configuration advocated by ESLint, and meet the personalized needs (i.e. let professional tools do what they are good at) Selective reading The novice sug ...

Posted on Tue, 09 Jun 2020 04:36:14 -0400 by TitanKing

Wechat domain name screening detection interface wechat domain name detection interface tool

<!-- /\* Font Definitions \*/ @font-face {font-family:Tahoma; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-gener ...

Posted on Tue, 09 Jun 2020 04:17:53 -0400 by a1amattyj

VUE components are made into npm package, uploaded and used

catalog Building npm repository with nexus Configure the registry of the development environment as our own private repository Writing custom vue components Upload the custom component as npm package to the nexus repository Using our own vue components in vue Engineering nexus builds npm repository nexus startup (docker form) docker run -d - ...

Posted on Tue, 09 Jun 2020 02:46:08 -0400 by ryanpaul