ctx.accessCount()


  • 返回值:<integer> 属性被访问(读取或写入)的次数。

此函数返回该属性被访问的次数。该函数比检查 ctx.accesses.length 更高效,因为 ctx.accesses 是一个 getter,会创建内部访问跟踪数组的副本。

【This function returns the number of times that the property was accessed. This function is more efficient than checking ctx.accesses.length because ctx.accesses is a getter that creates a copy of the internal access tracking array.】