Skip to content

pantoken / plugins/pantoken/deprecations/src / compareVersions

函数: compareVersions()

compareVersions(a, b): number

Beta

比较两个点分版本数组:如果 a < b 则为负,若相等则为 0,如果 a > b 则为正。

参数

a

number[]

b

number[]

返回值

number