调用报错为什么? TypeError: Cesium.when is not a function
screenshotClick() {
console.log('截图')
var scene = window.viewer.scene;
var promise = scene.outputSceneToFile();
Cesium.when(promise, function (base64data) {
this.download(base64data);
console.log('base64');
})
console.log(viewer,'viewer');
console.log(scene,'scene');
console.log(Cesium,'cesium');
我调用实现屏幕截图功能;
打印出来的log: