., // reference to the dom element for the object tag}
myObj.jsapi= jsapi;如您所见,我们保留对传递给onload方法的DOM对象元素和JsApi对象的引用。当尝试在插件(或属性)上执行方法时,它将首先尝试myObj.jsapi.method(),如果失败,则会尝试‘myObj.element.method()’,如果失
因此,在实例化2D计划视图之后,我需要将document对象(一个消防JSAPI)传递给2d计划视图。signature is "bool attach(const FB::JSObjectPtr& myDoc)" and 问题是,在firefox中,通过调用
FB::JSAPIPtr jsAPI = myDoc->getJSAPI(); // THIS WILL RETURN **NULL*