Bitbybit Docs
    Preparing search index...

    Class ListItemDto<T> (Inputs.Lists)

    用于 lists.getItem 的列表和位置。

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionallist: T[]
      • Optionalindex: number
      • Optionalclone: boolean

      Returns ListItemDto<T>

    Properties

    list: T[]

    要读取的列表。

    undefined
    
    index: number

    项的位置,从 0 开始计数;超出列表会抛出错误。

    0
    

    0

    Infinity

    1

    clone?: boolean

    为 true 时,该项被深拷贝,使调用者无法通过它更改列表;无法拷贝的项(例如带循环引用的)会抛出错误。

    true