import launchApplication from 'launch-application';
let url = 'xxx://open';
function success() {
alert('success');
}
function fail() {
alert('fail')
}
launchApplication(url, success, fail);
唤起桌面应用
- url 外链地址
- success �成功回调
- fail 失败回调
import launchApplication from 'launch-application';
let url = 'xxx://open';
function success() {
alert('success');
}
function fail() {
alert('fail')
}
launchApplication(url, success, fail);
唤起桌面应用