有沒有辦法讓瀏覽器選項卡與電容器反應專案一起作業。我發現它在離子中受支持。我對離子和電容器比較陌生。我正在嘗試在我的反應電容器中使用這個離子插件 https://ionicframework.com/docs/intro/cli
但我收到了這個錯誤
Module not found: Can't resolve '@angular/core' in '/Users/userid/Desktop/projectname-irc/node_modules/@ionic-native/browser-tab'
uj5u.com熱心網友回復:
我發現自定義選項卡不是電容器檔案的一部分,但它們是通過BrowserOptions在 Browser.open 方法中傳遞的。
async function openInBrowserTab() {
await Browser.open({ url: 'https://www.google.com/', presentationStyle: 'popover', windowName: '_self' });
}
https://capacitorjs.com/docs/v2/apis/browser#open
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/466897.html
標籤:离子框架 电容器 chrome-custom-tabs
