版权声明: https://blog.csdn.net/william_n/article/details/83119085
占坑/
~
和^
的意思很接近,在x.y
的情况下是一样的都是代表x.y <= 版本号 < (x+1).0
,但是在版本号是x.y.z
的情况下有区别,举个例子吧:
-
~1.2.3
代表1.2.3 <= 版本号 < 1.3.0
-
^1.2.3
代表1.2.3 <= 版本号 < 2.0.0
https://segmentfault.com/q/1010000006210480/a-1020000006210930