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
exports.splitMultiply = splitMultiply; | |
exports.persistence = persistence; | |
/** | |
* 返回整数的乘法持久性. | |
For example: | |
because 3*9 = 27, 2*7 = 14, 1*4=4,and 4 has only one digit | |
persistence(39) === 3; | |
because 9*9*9 = 729, 7*2*9 = 126, 1*2*6 = 12, and finally 1*2 = 2 | |
persistence(999) === 4; |
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
exports.parseKey = parseKey; | |
exports.parse = parse; | |
/** | |
* 采用字符串模式读取对象键值. | |
例如: | |
let object = { | |
b: { c: 4 }, d: [{ e: 5 }, { e: 6 }], | |
}; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style type="text/css"> | |
.triangle { | |
width: 0; | |
height: 0; | |
border-width: 10px 12px; |
NewerOlder