Quick Deployment Front End Project to Tencent Cloud Based on serverless

The Tencent Cloud COS component allows you to quickly deploy static Web site pages into object storage COS and generate domain names for access. install First install the serverless component npm install -g serverless Generate a configuration file at the root of the project touch serverless.yml <a name="YpT8f"></a> To configure C ...

Posted by sw45acp on Mon, 06 Jan 2020 15:22:26 +0100

JavaScript code style

JavaScript code style 1. specification In order to agree on your code style, some relatively standard code style specifications have been born in the community: JavaScript Standard Style Airbnb JavaScript Style 2. ESLint ESLint only provides tools and rules, how to configure these rules depends on the user. This is ill ...

Posted by senyo on Mon, 06 Jan 2020 02:35:07 +0100

Analysis of image download in browser

As a result of the project demand reason, looked up in the browser picture download related material earnestly, summarized several parts. 1. Save SVG as PNG In IE, it seems that SVG can only be saved locally as PNG by right clicking SVG. In non IE browser, it can be realized by the following code: let serializer = ...

Posted by adamski on Sat, 04 Jan 2020 12:29:43 +0100

Vue cli installation and basic use of axios

Vue cli installation and basic use of axios   Vue cli is a very convenient scaffold, which can be installed according to the rookie tutorial Address: http://www.runoob.com/vue2/vue-install.html Just follow the rookie tutorial all the way. If there is no npm or cnpm (Taobao image), please go to the node official website to d ...

Posted by MasksMaster on Thu, 02 Jan 2020 15:08:33 +0100

ionic4 calls internal App of mobile phone

ionic4 calls internal App of mobile phone There are many significant changes in the upgrading of ionic3 to ionic4. As ionic4 is still in the bate version, there are many areas that have not been improved. Now let's talk about how to call the APP inside the mobile phone in the ionic4 bate version. 1, Install plug-ins that can d ...

Posted by Jbert2 on Tue, 31 Dec 2019 08:16:45 +0100

A cascade selector written by vue

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <style> * { padding: 0; margin: 0; } * { padding: 0; margin: 0; box-sizing: border-box; } a { text-decoration: none; } .clearfix:befor ...

Posted by rebelo on Sat, 28 Dec 2019 19:18:33 +0100

Node Learning Notes 7 days Node.js Course Knowledge Compilation

Try to use Node.js to stumble and stumble in your work. Briefly comb Noejs (7 days) from now on, leaving out the following points of knowledge in the example section: require and export Export methods or variables from a file using the export or module.exports method in the target component The difference is that export is not available when e ...

Posted by rmurdo on Thu, 26 Dec 2019 06:49:45 +0100

vue component development mobile bottom navigation bar

Parent child component association establishment The first step is to create a parent.vue <template> <div> <h1>father</h1> </div> </template> Then we configure the vue as the homepage of the node project in index.js under router import Parent from '@/components/Parent' Vue.use(Router ...

Posted by smarthouseguy on Mon, 23 Dec 2019 21:53:55 +0100

Vue upload files / pictures to qiniu cloud

Purpose: upload files / pictures to qiniu cloud using vue Explain: 1. The foreground uses vue and the background uses java to pass a token. 2. token: This is equivalent to a key. 3. Simply put it. Don't write anything to sign up for an account, find as he ks or anything, and go to this step, needless to say. Step 1: front ...

Posted by cybercog on Fri, 20 Dec 2019 19:55:30 +0100

Use asynchronous/wait in forEach loop

Is there any problem using async / await in the forEach loop?I'm trying to traverse the file array and await the contents of each file. import fs from 'fs-promise' async function printFiles () { const files = await getFilePaths() // Assume this works fine files.forEach(async (file) => { const contents = await fs.readFile(file, ' ...

Posted by Garath531 on Tue, 17 Dec 2019 03:16:20 +0100