问题描述
这听起来好像一定已经被问过了,但是我只能找到如何在本机反应中执行此操作,但我找不到在正常的网络反应中如何完成操作。最好 not 带有需要设置样式的标签或链接标签。
这里有一些代码来说明我想做什么:
const onClickMailtoHandler = () => {
//TODO: open default e-mail client e.g. via mailto link with text from (state) variable as body
}
<Button onClick={onClickMailtoHandler}>Send E-Mail</Button>
以下是在HTML中创建mailto链接的方法:
<a href="mailto:[email protected]?body=My custom mail body">E-Mail to Max Mustermann</a>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)