嗨团队我有一个非常小的问题,我有这个代码:
constructor(private mapper: any, private applyCallback: (arg0: INode) => void) {
super()
/** @type {GanttMapper} */
this.mapper = new GanttMapper(datamodel);
/** @type {function(INode):void} */
this.applyCallback = applyCallback;
// create the dummy node
this.dummyNode = new SimpleNode();
// switch off the default template
//type RouterClass = typeof ;
//interface RouterDerived extends RouterClass { }
console.log("routerClass");
this.template = new IVisualTemplate({
createVisual() {
return null;
},
updateVisual() {
return null;
}
});}
但在部分:
this.template = new IVisualTemplate({
createVisual() {
return null;
},
updateVisual() {
return null;
}
});
我有一个错误,错误是这样的:无法 在 JS 中创建抽象类的实例此代码工作正常,但我试图以角度迁移它并且不工作。
我阅读了相同问题的另一部分,但我无法解决它......我尝试了所有重播技巧,但没有奏效。谢谢大家。