跳到主要内容

import_cfg

加载xlsx

load_info:

为"*" 时,读入全部worksheet, 并将 sheet name 作为 map key

为数字时,读入下标为 这张表的worksheet, sheet name 不会作为key

为字符串时,读入title为这张表的worksheet, sheet name 不会作为key

数字和字符串可以写到数组中传入,也可单独传入

声明

mixed import_cfg(string file_name, bool err_when_not_exist = true, mixed load_info = nil)

参数

参数名描述
file_name配置表名称
err_when_not_exist配置表不存在时,是否抛出错误
load_infoload_info 默认为 nil, 等同于数字 0

返回值

返回加载的数据

使用方式

返回文档