Skip to content

Commit af6805b

Browse files
authored
Merge pull request #37 from Imlisten/master
fix getType()
2 parents 0a6541f + dbeb14d commit af6805b

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)