mirror of
https://github.com/HighCapable/SweetProperty.git
synced 2025-09-05 18:25:35 +08:00
docs: update guide
This commit is contained in:
@@ -81,7 +81,10 @@ sweetProperty {
|
|||||||
isEnableExcludeNonStringValue = true
|
isEnableExcludeNonStringValue = true
|
||||||
// 是否启用类型自动转换功能
|
// 是否启用类型自动转换功能
|
||||||
// 默认启用,启用后将自动识别属性键值中的类型并转换为对应的类型
|
// 默认启用,启用后将自动识别属性键值中的类型并转换为对应的类型
|
||||||
// 例如 "name=hello" 和 "number=1" 它们将会被自动转换为 String 和 Int
|
// 在启用后如果你想要强制设置一个键值内容为字符串类型,你可以使用单引号或双引号包裹整个字符串
|
||||||
|
// 注意:在关闭此功能后如上所述的功能也将同时失效
|
||||||
|
// 例如 name=hello 和 number=1 它们将会被自动转换为 String 和 Int
|
||||||
|
// 例如 stringNumber="1" 或 stringNumber='1' 它们将会被强制转换为 String
|
||||||
isEnableTypeAutoConversion = true
|
isEnableTypeAutoConversion = true
|
||||||
// 是否启用键值内容插值功能
|
// 是否启用键值内容插值功能
|
||||||
// 默认启用,启用后将自动识别属性键值内容中的 ${...} 内容并进行替换
|
// 默认启用,启用后将自动识别属性键值内容中的 ${...} 内容并进行替换
|
||||||
|
@@ -85,7 +85,11 @@ sweetProperty {
|
|||||||
// Whether to enable the type automatic conversion function
|
// Whether to enable the type automatic conversion function
|
||||||
// Enabled by default, when enabled,
|
// Enabled by default, when enabled,
|
||||||
// the type in the properties key-values will be automatically recognized and converted to the corresponding type
|
// the type in the properties key-values will be automatically recognized and converted to the corresponding type
|
||||||
// For example "name=hello" and "number=1" they will be automatically converted to String and Int
|
// After enabling, if you want to force the content of a value to be a string type,
|
||||||
|
// you can use single quotes or double quotes to wrap the entire string
|
||||||
|
// Note: After turning off this function, the functions mentioned above will also become invalid at the same time
|
||||||
|
// For example name=hello and number=1 they will be automatically converted to String and Int
|
||||||
|
// For example stringNumber="1" or stringNumber='1' they will be coerced to String
|
||||||
isEnableTypeAutoConversion = true
|
isEnableTypeAutoConversion = true
|
||||||
// Whether to enable key-values content interpolation
|
// Whether to enable key-values content interpolation
|
||||||
// Enabled by default, after enabling, the ${...} content in the properties key-values content
|
// Enabled by default, after enabling, the ${...} content in the properties key-values content
|
||||||
|
Reference in New Issue
Block a user