📅  最后修改于: 2022-03-11 15:01:15.660000             🧑  作者: Mango
(async function foo () {
const api = chrome.webview.hostObjects.api
await api.setHostProperty('Username', 'whoever');
const user = await api.Username
alert (user)
})();