摘要: 通常情况下用typeof 判断就可以了,遇到预知Object类型的情况可以选用instanceof或constructor方法,实在没辙就使用$.type()方法。 一、typeof alert(typeof a) > string alert(typeof b) > number alert(ty 阅读全文
posted @ 2021-11-23 20:15 Jim-vue 阅读(99) 评论(0) 推荐(0) 编辑