窗口之間發送數據,我的目標是讓情況如下:我想知道是否有可能使用Node.js的
1) User opens myapp.com in Window A
2) User clicks button which opens myapp.com/doWork in Window B
3) After performing some operations and retrieving data (requiring user input), Window B closes
4) Window A displays the data retrieved from Window B
這可能使用Node.js的?我意識到一個更簡單的解決方案就是隻需在一個窗口中完成所有操作。我正在使用快遞/句柄。
使用postMessage – moka