Skip to content

Commit dbeb14d

Browse files
authored
fix getType()
1 parent 0a6541f commit dbeb14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ function isDigit(value) {
508508
```js
509509
function getType(a) {
510510
var typeArray = Object.prototype.toString.call(a).split(" ");
511-
return typeArray[1].slice(0, this.length-1);
511+
return typeArray[1].slice(0, -1);
512512
}
513513
```
514514
- 设置cookie值

0 commit comments

Comments
 (0)