渲染多ICON广告位
最后更新于
最后更新于
let flowUI = qg.tmSDK.createFlow({
positionId: 1260,
width: 375, // 设置尺寸,最小为类似微信banner的300,最大为微信视图宽
x: 0,
y: 300,
});
// 监听错误事件
flowUI.onError(function({message}) {
console.log(message)
});flowUI.destroy();setTimeout(() => flowUI.destroy());flowUI.onError(function(error) {
console.error(error);
})let callBack = function(error){ // 假设onError的时候绑定的为该函数
console.log(error)
};
flowUI.offError(callBack); // 取消某个监听事件flowUI.onNavigate(function(error) {
console.error(error);
})let callBack = function(error){
console.log(error)
};
flowUI.offNavigate(callBack); // 取消某个监听事件