Web/JQuery
$.type(obj) 사용법
망할고양이
2015. 3. 24. 11:05
- $.type(obj) 사용법
- 123456789101112jQuery.type(undefined) === "undefined"jQuery.type() === "undefined"jQuery.type(window.notDefined) === "undefined"jQuery.type(null) === "null"jQuery.type(true) === "boolean"jQuery.type(3) === "number"jQuery.type("test") === "string"jQuery.type(function(){}) === "function"jQuery.type([]) === "array"jQuery.type(new Date()) === "date"jQuery.type(/test/) === "regexp"
cs