如果我尝试执行类似viewer.addHandler('open', function() {
// To improve load times, ignore the lowest-resolution Deep Zoom
// levels. This is a hack: we can't configure the minLevel via
// OpenSeadragon configuration options when the viewer is created
// from DZI XML.
viewer.source.minLevel = 8;
});
function open_slide(url, mpp) {
var tile_source;
if (dzi_data[url]) {
// DZI XML provided as template argument (deepzoom_tile.py)
tile_source = new OpenSeadragon.DziTileSource(
OpenSeadragon.DziTileSource.prototype.configure(
OpenSeadragon.parseXml(dzi_data[url]),
url
)
);
} else {
// DZI XML fetched from server (deepzoom_server.py)
tile_source = url;
}
viewer.open(tile_source);
viewer.scalebar({
pixelsPerMeter: mpp ? 1e6 / mpp : 0
});
viewer.gestureSettingsMouse.clickToZoom = false;
}
的操作,则会收到错误消息:
pug.complieClient('include pug-file')
根据参考资料,它用于:
正在编译的文件的名称。在例外中使用,并且对于相对包含和扩展是必需的。默认为“哈巴狗”。
除了我的主要问题是什么以外。我也很好奇为什么必须指定默认值?