当我在工作表的部分类文件(例如Sheet8)中编写代码时,如何将“这个”类作为参数传递给Microsoft.Office.Interop.Excel.Worksheet接口的对象?Microsoft.Office.Interop.Excel.Worksheet sheet) // Do something with the sheet}
问题似乎是,“这个”总是指Sheetn对象,不能转换为创建与自定义代码松散耦合的接口所必需
在我的vue组件for watch选项中使用匿名函数时,我得到了typescript编译器错误"this implicityly has type any“。this.load() // <= hear I got "this implicitly has type any" }}) 我在这篇文章中发现我的匿名去反弹回调函数使用了箭头函数this' implicitly has type 'any