Last active
November 14, 2018 12:15
-
-
Save import-yuefeng/30b23d57a5fcb0bda80dad1a2b7ebdb5 to your computer and use it in GitHub Desktop.
id_rsa.pub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXFuM/WeBCRd7kXC+eWPBizqCu/tYhOaI/vwi+5lzh3Swdx+JMTLg7BiWElCfERJJplvXq8zXbeyueZ4wEQs4YaeWFE0sxdnMOPFLYkGOQXlEkEbwJQYcyJLryhGvQc0SkZ+bYeYJB6Ucm+2OzbA3NpBBJJX09YZz0RHHYp2wgk7skBLnLuhXYA72ZLudkBl8ZAuTbxTlxKx9tnyv0mTrW8/wdGbBgbgTHyYH7Ag23HzvfNa+WZ3kA1Wd4Tu2J4K9lFZe8W89T5iTyfetwAv5zobBqopa623un/4eNLa96Nc5xydv1hHWAEEJB7o2JdNaQYYoOE1oeRDl3bSrawnuZ [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
// strict Case | |
var abc = 2 | |
console.log(abc) | |
// Unicode Case | |
console.log('\u4e2d\u6587') | |
//多行字符串的新表示方法 | |
console.log(` | |
test | |
`) | |
// str sum . | |
var name = '小明' | |
var age = 20 | |
var message = "你好, " + name + ", 你今年" + age + "岁了!" | |
console.log(`你好, ${name}, 你今年${age}岁了!`) | |
// str.length attribute | |
var s = "hello world" | |
console.log(s.length) | |
// str toUpperCase func | |
var toUpper = "hello" | |
console.log(toUpper.toUpperCase()) | |
// str toLowerCase func | |
var toLower = "HELLO" | |
console.log(toLower.toLowerCase()) | |
// str indexOf func | |
var indexOfCase = "hello world" | |
console.log(indexOfCase.indexOf("hello")) | |
// 返回7 | |
console.log(indexOfCase.indexOf("World")) | |
// 不存在则返回-1 | |
// str substring func | |
var substringCase = "hello world" | |
console.log(substringCase.substring(0, 5)) | |
console.log(substringCase.substring(7)) | |
// a case of substring && indexOf | |
console.log(substringCase.substring(substringCase.indexOf(' ')+1)) | |
var arr = ['Microsoft', 'Apple', 'Yahoo', 'AOL', 'Excite', 'Oracle']; | |
// 从索引2开始删除3个元素,然后再添加两个元素: | |
arr.splice(2, 'Google', 'Facebook'); | |
// 返回删除的元素 ['Yahoo', 'AOL', 'Excite'] | |
console.log(arr); | |
// ['Microsoft', 'Apple', 'Google', 'Facebook', 'Oracle'] | |
// 只删除,不添加: | |
// arr.splice(2, 2); // ['Google', 'Facebook'] | |
// arr; // ['Microsoft', 'Apple', 'Oracle'] | |
// // 只添加,不删除: | |
// arr.splice(2, 0, 'Google', 'Facebook'); // 返回[],因为没有删除任何元素 | |
// arr; // ['Microsoft', 'Apple', 'Google', 'Facebook', 'Oracle'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment