简体   繁体   English

我们如何在 java 脚本中使用 PostMessage

[英]How can we use PostMessage in java script

I want to transfer data from one webpage to another webpage by Using PostMessage in java script.我想通过在 java 脚本中使用 PostMessage 将数据从一个网页传输到另一个网页。

You can use encoded string for passing data from one webpage to another.您可以使用编码字符串将数据从一个网页传递到另一个网页。

`var string = `${variables}|${for}|${passing}|${values}``

encodedString = btoa(string);
accountsUrl = BASE_URL_LIVE + `yourSecondWebpageUrl/${encodedString}`;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在iFrame上使用postMessage - How to Use postMessage on iFrame javascript弃用了所需功能。 我们如何使用Internet Explorer驱动程序Selenium中启用的Java脚本 - Desired capabilities isjavascriptenabled deprecated. How can we use the java script enabled in Internet explorer driver selenium 我们可以使用一个Java脚本函数对多个输入进行验证吗? - Can we use one java script function to multiple input validation? 我们可以使用 postMessage 传递 DOM 元素吗? - can we pass DOM elements using postMessage? 我们如何在Java脚本中验证URL的链接 - How can we validate the URL'S links in java script 如何在Angular中使用addEventListener和postMessage? - How to use addEventListener and postMessage in Angular? 无法在反应组件中使用 postMessage - Can't use postMessage in react components 可以从不同的Java脚本文件内部调用worker.postmessage和worker.onmessage来使用一个worker.js吗? - Could worker.postmessage and worker.onmessage be called from inside different java script files, to use one worker.js? 什么是服务器端java脚本? 我们也可以在服务器端使用java脚本吗? 前端开发人员需要了解哪种类型的java脚本? - What is server side java script? Can we use java script also at server side? Which type of java script is necessary to know for a front-end developer? 如何在Javascript中使用postMessage()? - How do I use postMessage() in Javascript?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM