函数:table.insert 插入数据到数组

函数名称:插入数据到数组

函数功能:插入数据到数组

函数方法

table.insert (tab_table, pos,value)

参数 类型 必填 说明
tab_table string 待操作的数组
pos number 待插入位置,不写默认值为 #tab_table
value value 待插入的内容

函数示例

tab_table = {1,2,3,4,5,6,7,8,9,10}
table.insert(tab_table,11)
dialog(tab_table[11],5000)
Copyright 北京帮你玩科技有限公司 2022 all right reserved,powered by Gitbook该文章修订时间: 2023-08-09 17:19:31

results matching ""

    No results matching ""