find the correct Node.js version (https://nodejs.org/en/download/)
eg:
download
wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.xz| /* Reset | |
| =============================================================================*/ | |
| html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| } | |
| /* Body |
find the correct Node.js version (https://nodejs.org/en/download/)
eg:
download
wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.xz临时换源
npm --registry https://registry.npm.taobao.org install express
永久换源
npm config set registry https://registry.npm.taobao.org
| "use strict"; | |
| const HTML_ESCAPED_CHARS = { | |
| "<" : "<", | |
| ">" : ">", | |
| "\"": """, | |
| "&" : "&", | |
| "'" : "'", | |
| "/" : "/", | |
| "`" : "`", |
| export function get(url) { | |
| return new Promise(function (resolve, reject) { | |
| const xhr = new XMLHttpRequest(); | |
| xhr.open('GET', url); | |
| xhr.send(null); | |
| xhr.addEventListener('readystatechange', function () { | |
| if (xhr.readyState === 4 && xhr.status === 200) { | |
| try { | |
| const data = JSON.parse(xhr.responseText); | |
| resolve(data); |
| { | |
| "env": { | |
| "node": true, | |
| "es6": true | |
| }, | |
| "ecmaFeatures": { | |
| "arrowFunctions": true, | |
| "blockBindings": true, | |
| "classes": true, | |
| "defaultParameters": true, |
| "-------------Vundle的配置文件----------------- | |
| set nocompatible " 去除VI一致性,必须 | |
| filetype off " 必须 | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " 让vundle管理插件版本,必须 | |
| Plugin 'VundleVim/Vundle.vim' |