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

Node-RED usage guide: 5: Set administrator's login password

Node-RED does not need to enter a user name and password by default. There is actually a very simple administrator's login page that can be blocked out a bit. By default, it is commented out in settings.js and you can see the simplest login page by opening it.This usage feature is described in this art ...

Posted by reflash on Thu, 05 Mar 2020 16:53:06 -0800

Brother, your order has arrived (front and back wechat apps subscribe to message push)

Applet message push type Subscription message Template message Unified services message Customer service news Because Template message It is offline. The example message here is Subscription message To implement the subscription message, we need to know the parameter values of several applets Applet appid ...

Posted by rscott7706 on Thu, 05 Mar 2020 03:21:28 -0800

Using the express write interface

1, Interface development specification (Restful API) 1. Clear needs Function: to ensure that everyone's writing specifications are the same Give an example: The back end publishes the resource to the URL - > the front end accesses the resource through the URL - > and indicates the operation ...

Posted by nivosh on Thu, 05 Mar 2020 01:23:39 -0800

Getting started with vue -- the use of v instruction

Entry directory 1.`v-once` 2.`v-text` 3.`v-html` 4.`v-show ,v-if` 5.`v-else,v-else-if` 6.`v-for` 7.`v-on` 8.`v-bind` 9.`v-model` 10.`v-block` Citation of CND <! -- development environment version with helpful command line warnings -- > <script src="https://cdn.jsdelivr.net/npm/vue/dist/vu ...

Posted by goatboy on Wed, 04 Mar 2020 21:25:09 -0800

Laravel + Serverless Framework to quickly create CMS content management system

Today, I will bring you a comprehensive practical battle of Laravel + Serverless Framework. There is a bit more information in it. Please take a closer look First of all, let me introduce the main local environment: Git: not much, as long as you can knock the code, you should know Node.js: due to Tencent cloud Serverless Framework The main pro ...

Posted by ripcurlksm on Tue, 25 Feb 2020 19:19:28 -0800

TypeScript basic operation, configuration file tsconfig.json details, vscode and HBuilderX basic configuration

Node basic command npm installation dependency [npm install xxx] using npm to install xxx depends on the directory where the current command line is located [npm install xxx -g] use npm to install global dependency xxx [npm install xxx – save] install and write to "dependencies" of pac ...

Posted by techevan on Tue, 25 Feb 2020 01:21:36 -0800