怎么判断类型是否是函数

typeof re=="function"

如果re是函数,那么返回值为true;否则返回false

posted on 2017-03-17 14:55  2015熊出没  阅读(202)  评论(0)    收藏  举报