[英]How to post data to an external webpage using In-app-browser plugin in ionic 4/5?
Is there any way to post a form with some inputs data to an external webpage using In-app-browser plugin in ionic 4/5?有没有办法使用 ionic 4/5 中的应用内浏览器插件将带有一些输入数据的表单发布到外部网页?
example:例子:
var formData = `<body >
<form id="mForm" action="url" method="post">
<input type="hidden" name="test" value="123">
</form>
</body>`
var urlContents = "data:text/html;base64,"+ btoa(unescape(encodeURIComponent(formData )));
this.iab.create(urlContents );
The above code is not working.上面的代码不起作用。
Did you solve it?你解决了吗? We solved it by triggering a submit button in your
我们通过触发您的提交按钮解决了这个问题
formData
表单数据
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.