File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
- ` Math.LN10 ` :10 的自然对数。
12
12
- ` Math.LOG2E ` :以 2 为底的` e ` 的对数。
13
13
- ` Math.LOG10E ` :以 10 为底的` e ` 的对数。
14
- - ` Math.PI ` :常数 Pi 。
14
+ - ` Math.PI ` :常数` π ` 。
15
15
- ` Math.SQRT1_2 ` :0.5 的平方根。
16
16
- ` Math.SQRT2 ` :2 的平方根。
17
17
@@ -40,7 +40,7 @@ Math.SQRT2 // 1.4142135623730951
40
40
- ` Math.pow() ` :指数运算
41
41
- ` Math.sqrt() ` :平方根
42
42
- ` Math.log() ` :自然对数
43
- - ` Math.exp() ` :e的指数
43
+ - ` Math.exp() ` :` e ` 的指数
44
44
- ` Math.round() ` :四舍五入
45
45
- ` Math.random() ` :随机数
46
46
@@ -208,7 +208,7 @@ function random_str(length) {
208
208
ALPHABET += ' abcdefghijklmnopqrstuvwxyz' ;
209
209
ALPHABET += ' 0123456789-_' ;
210
210
var str = ' ' ;
211
- for (var i= 0 ; i < length; ++ i) {
211
+ for (var i = 0 ; i < length; ++ i) {
212
212
var rand = Math .floor (Math .random () * ALPHABET .length );
213
213
str += ALPHABET .substring (rand, rand + 1 );
214
214
}
You can’t perform that action at this time.
0 commit comments