【发布时间】:2018-02-07 15:49:17
【问题描述】:
我有一些关于 Cordova Phonegap inAppBrowser 的问题。我已将 inAppBrowser 包含到我的代码中。
function onDeviceReady() {
var ref = window.open('http://~/Testing.pdf', '_blank', 'location=yes');
ref.addEventListener('loadstart', function(event) { alert('start: ' + event.url); });
ref.addEventListener('loadstop', function(event) { alert('stop: ' + event.url); });
ref.addEventListener('loaderror', function(event) { alert('error: ' + event.message); });
ref.addEventListener('exit', function(event) { alert(event.type); });
}
我使用代码来预览 pdf 文件。我想问的问题是,如果我想在我的服务器中显示多个 pdf 文件,我必须使用此代码创建多个 html 页面但不同的 pdf 文件链接?
我希望有人可以帮助我,因为我是这方面的新手。
【问题讨论】:
标签: html cordova pdf phonegap inappbrowser