判断是否是字符串:
isStr(s) {
return typeof s === "string";
}
判断是否是字符串或数字:
isStringOrNumber(s) {
return typeof s === "string" || typeof s === "number";
}
判断是否是函数:
isFn(fn) {
return typeof fn === "function";
}
判断是否是字符串:
isStr(s) {
return typeof s === "string";
}
判断是否是字符串或数字:
isStringOrNumber(s) {
return typeof s === "string" || typeof s === "number";
}
判断是否是函数:
isFn(fn) {
return typeof fn === "function";
}