/** 判断变量类型
* @param {params}: 变量/参数
* @return string | Object | number | boolean | Null | undefined | function | Array
*/
function getType(params) {
let type = typeof(params);
if(type==='object') type = Object.prototype.toString.call(params).slice(8,-1);
return type;
}