“〜"的含义科尔多瓦的beore平台版本 [英] Meaning of "~" beore plaform version in Cordova
问题描述
我只是科尔多瓦的新手,我需要一点帮助来了解一些东西.
I'm just new in Cordova and I need a little help to understand something.
当我输入$ cordova平台列表时,它将返回以下内容:
When I type $ cordova platform list, it returns the following :
已安装的平台:
可用平台:
android〜6.2.2
android ~6.2.2
blackberry10〜3.8.0
blackberry10 ~3.8.0
浏览器〜4.1.0
webos〜3.7.0
webos ~3.7.0
windows〜5.0.0
windows ~5.0.0
在平台版本之前,我想确切地了解〜"的含义.这是否意味着所有以前的版本都受支持?还是只是提到的版本?另外,我在此列表中都没有看到iPhone和iPad平台.这是否意味着不支持他们?
I would like to know precisely the meaning of " ~ " before a platform version. Does it mean that all the previous versions are supported ? Or just the mentionned version ? Also, I don't see neither iPhone nor iPad platforms in this list. Does it mean they are'nt supported ?
谢谢!
推荐答案
科尔多瓦使用semver作为版本
Cordova uses semver for the versions
这意味着版本是语义
在x.y.z之类的版本中
In a version like x.y.z
- x在市长变更后递增 轻微更改后,
- y会增加
- z在补丁更改后递增
波浪号(〜)允许较新的修补程序级别版本
the tilde (~) allows newer patch level versions
因此,如果您使用的是Android〜6.2.2,而6.2.3发行了,您将得到它,但如果6.3.0发行了,您将不会.
So, if you have android ~6.2.2, and 6.2.3 comes out, you'll get it, but if 6.3.0 comes out, you won't.
如果您也想进行较小的更改,可以改用尖号(^)
If you want to get minor changes too, you can use the caret (^) instead
这篇关于“〜"的含义科尔多瓦的beore平台版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!