检查是否是基本类型,非对象
/** * Check if value is primitive */ function isPrimitive (value) { return ( typeof value === 'string' || typeof value === 'number' || // $flow-disable-line typeof value === 'symbol' || typeof value === 'boolean' ) }
检查是否是基本类型,非对象
/** * Check if value is primitive */ function isPrimitive (value) { return ( typeof value === 'string' || typeof value === 'number' || // $flow-disable-line typeof value === 'symbol' || typeof value === 'boolean' ) }
本文标题:vue Vue.isPrimitive
本文链接:https://www.haomeiwen.com/subject/xcvwvftx.html
网友评论