Using js to realize simple and interesting face recognition

In the previous stage, I wanted to play face recognition. I found an interesting plug-in package. Although it is not particularly powerful, it can still achieve results relatively. It is mainly simple. It can be used within 5 minutes. You can play it. Now I will share it with you This plug-in is jquery.facedetection F ...

Posted by webent on Sun, 05 Apr 2020 12:29:08 -0700

[introduction to front end unit testing 04] Karma

Karma Official introduction A simple tool that allows you to execute JavaScript code in multiple real browsers. A simple tool that allows you to execute js code in multiple real browsers. After using karma, we didn't need to use jsdom to simulate the environment required for the mount of Enzyme, because karma will test the execution of js in ...

Posted by pwicks on Sat, 04 Apr 2020 18:59:13 -0700

Basic usage of angular js1.4 lazy loading

First, briefly explain the role of lazy loading: As the name implies, laziness means that resources that need to be loaded are not loaded the first time, but are loaded when the page needs to be used, usually to improve the efficiency of loading the first page. Here is a simple example of the basic use of lazy loading ...

Posted by ddemore on Sat, 04 Apr 2020 18:08:11 -0700

Using Express to build Node.js server

Express: a fast, open and simple web development framework based on Node.js platform. Explain install Build Express Test success Call server method: Vue Resource & Axios The difference between Vue resource and axios axios reference: https://www.awesomes.cn/repo/axios/axios Installation: Third party npm is used here Install express ...

Posted by mattyj10 on Wed, 01 Apr 2020 11:04:38 -0700

vue2 learning note 1

Preface It's a bit awkward to see some background management systems can't be implemented by themselves. So I have made up for the front-end knowledge. Choose a vue framework for learning. Here are some learning ideas thinking 1. Learn the properties and methods of Vue objects 2. Learning two-way binding 3. Use of lea ...

Posted by gladiator83x on Tue, 31 Mar 2020 19:09:48 -0700

Page Jump: build a general management system based on Vue and PHP with front-end and back-end separation (6)

Most of Vue router is used in the jump of Vue single page application. To understand the principle of Vue router, you first need to know the < component > element of Vue.The usage of < component > is very simple. As long as its is feature is dynamically bound, < component > switches to multiple components dynamica ...

Posted by lilleman on Tue, 31 Mar 2020 18:17:00 -0700

Publish a npm package of your own in one minute

How to publish an npm package 1. Register npm account Landing https://www.npmjs.com Use email to register, receive and verify email(here are two emails: Welcome to npm and Verify your npm email address) 2. Select the target folder and cd in the command line E:\xxx>cd test E:\xxx\test> 3. Execute npm init Enter th ...

Posted by GamingWarrior on Tue, 31 Mar 2020 04:08:50 -0700

axios in vue

axios in vue 1.install axios npm: $ npm install axios -S cdn: <script src="https://unpkg.com/axios/dist/axios.min.js"></script> 2. Configure axios //Create a new api/index.js file in the project to configure axios api/index.js //Copy code import axios from 'axios'; let http = axios.create({ baseURL: ...

Posted by neerav on Thu, 26 Mar 2020 10:04:12 -0700

Compiling js file Babel loader string loader in gulp

js files of ES6 and above can't be executed on some browsers with lower versions, so when the project development is completed, we need to compile js files to translate the syntax of ES6 + into ES5. Here we use gulp's Web pack stream plug-in to package js files. To solve the problem of js translation, w ...

Posted by soapsuds on Sat, 14 Mar 2020 21:47:26 -0700

Vue's Axios Cross-domain Problem Solutions

// GET requests in axios axios.get('/user', { params: { ID: '001' } }) .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); }); // POST requests in axios axios.post('/user', { firstName: '1', lastName: '2' }) .then(function (response) { console.log( ...

Posted by elle_girl on Tue, 10 Mar 2020 16:14:44 -0700