摘要: /** 判断变量类型 * @param {params}: 变量/参数 * @return string | Object | number | boolean | Null | undefined | function | Array */ function getType(params) { l 阅读全文
posted @ 2019-09-03 15:19 蓝空之忆 阅读(173) 评论(0) 推荐(0) 编辑
摘要: console.log ("console.log : 输出普通信息"); console.warn ("console.warn : 输出警告信息"); console.info ("console.info : 输出提示信息"); console.error ("console.error: 输 阅读全文
posted @ 2019-09-03 11:06 蓝空之忆 阅读(198) 评论(0) 推荐(0) 编辑
摘要: // 获取url相应的参数 function getParams(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(r 阅读全文
posted @ 2019-09-03 11:05 蓝空之忆 阅读(268) 评论(0) 推荐(0) 编辑