1 Determine whether it is an array type
< script type="text/javascript">
//var a=[0];
document.write(isArray(a),'
');
function isArray(obj){
return (typeof obj=='object')&&obj.constructor==Array;
}
//]]>
< /script>
2 Determine whether it is a string type
3 Determine whether it is a numeric type
5 Determine whether it is a function
6 Determine whether it is an object