怎么判断类型是否是函数

typeof re=="function"

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

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