Simple interface calls, perfect completion of shortening the site

Short web addresses are sometimes a very new requirement. There are many such websites on the Internet, but sometimes they want to call interfaces to shorten the web addresses. Many of these websites are not provided. Commonly used interfaces on the Internet, such as Sina's short web interface, shallot computing Short web interface In fact, the ...

Posted by fodder on Thu, 10 Oct 2019 07:12:15 -0700

Some pits and knowledge collections of Vue and SprinBook development and maintenance

1. Perfectly Solve the Cross-domain Problem of Vue2.0+Axios Development and Production Environment Because bloggers mainly do back-end development and automated operation and maintenance, so the front-end is basically oriented to classmates and search engine programming.. This time, a simple and elegant cross-domain solution with Vue and Axios ...

Posted by buluk21 on Thu, 10 Oct 2019 05:17:27 -0700

[Front-end Blame Upgrade - LV.1] Basic Contents of Reaction

react usage tutorial Use of variables constructor(props) { super(props); this.state = { sliderSwiper: null, movies: [] }; this.handleStart = this.handleStart.bind(this); } if (!baseHref) { if (isPc) { window['location']['href'] = `${location.protocol}//${location.host}/demo/home`; return; } if (!isPc) { window['location']['href'] = `${location ...

Posted by skyriders on Wed, 09 Oct 2019 19:14:51 -0700

axios Source Series - Internal Adapter

Default adapter axios/lib/adapters/http.js The core is the http(s).request method of nodejs to make requests var utils = require('./../utils'); var settle = require('./../core/settle'); var buildFullPath = require('../core/buildFullPath'); var buildURL = require('./../helpers/buildURL'); var http = require('http'); var https = require('https'); ...

Posted by barteelamar on Sun, 06 Oct 2019 19:41:46 -0700

PM2 running json file and pm2-web configuration

PM2 runs json file to start node project and pm2-web installation Define the run configuration file We can predefine a configuration file and then work out how to run it. For example, we can define a file app.json, which reads as follows: [root@jenkins-master linux]# cat app.json { "apps":[ { "name": "service-sk_platform_profession ...

Posted by dpluth on Sat, 05 Oct 2019 03:41:28 -0700

Simple version implementation of commonjs module

Implementing Simple Version of commonjs Loading Read the code with the following questions. Is the file in node module? How is the js file read executed? exports module.exports relationship? Reference relationships between objects in js? How do you understand that a file is a module? In node, JS code is wrapped into the following function ...

Posted by NArc0t1c on Tue, 01 Oct 2019 07:57:17 -0700

The back end uses Node+Mysql to complete the function of adding, deleting and modifying.

Background: Before the Mid-Autumn Festival, I tried to build a node environment. I ran a little. After returning, I began to write, add, delete and check with node. But our company encapsulated a lot of things. I am also the caller. Perhaps the directory structure of each company is different. I will talk about our company here. First, I will i ...

Posted by itaym02 on Tue, 17 Sep 2019 03:57:56 -0700

Basic usage of Sequelize

install $ npm install --save sequelize # You also need to install one of the following: $ npm install --save pg pg-hstore // postgreSql $ npm install --save mysql // mysql or mariadb $ npm install --save sqlite3 $ npm install --save tedious // MSSQL Establish connection const Sequelize = require('sequelize') const sequelize = new Sequelize(d ...

Posted by __greg on Mon, 16 Sep 2019 20:06:00 -0700

Parsing and Implementing a Simple webpack at a Glance

Previous Situation Review Understand the basic configuration of webpack at a glanceAdvanced configuration and optimization of Web pack at a glance 1. Introduction This paper mainly describes the working principle of web pack, its packaging process, step by step analysis of its packaging process, and then simulate the implementation of a simple ...

Posted by Perad on Tue, 10 Sep 2019 09:05:58 -0700

Small full stack project built with Vue family bucket + Node.js

Preface It has been more than a month since I came into contact with the vue framework. A little demo I have done before is mainly familiar with the vue family bucket technology. The interface layout imitates the cat's eye and the data uses the background interface provided by the bean flap developer. The whole process from scaffolding to the ...

Posted by DusterG20 on Tue, 10 Sep 2019 01:29:45 -0700