标签:
function (options, param) { alert(typeof options); if (typeof options == "string") { alert("字符串"); } if (typeof options == "number") { alert("数字"); } }
Javascript判断参数类型
原文地址:http://www.cnblogs.com/weiweithe/p/4428929.html