读取未定义的属性“然后”我有这样的错误: 类型错误:未定义 at FactoryMethod.readItemsAndSetStatus (FactoryMethod.tsx:140:6) at FactoryMethod.componentDidMount (FactoryMethod.tsx:77:10) 调试器中断在这种方法不能读取属性“然后”(当时的声明): // read items u
在TypeScript 2.5.3中,我有一堆selenium WebElements,它们是链接。我需要在一个字符串数组中获取它们的目标。从C#Caming我会使用Linq与.Select()本身返回选择器返回类型的列表。在打字稿这似乎并没有这么好工作: let categoryLinkElements = await this.driver.findElements(By.css('ul li