Jie Zhu
Friday, February 25, 2011
JavaScript check whether a function is defined
if (typeof myFun == "undefined") {
alert('undefined');
}
else {
alert('defined');
}
function myFun()
{ }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment