本文介绍了mailto:问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试设置以下mailto:link:
I'm trying to set up the following mailto: link:
<a href='mailto:[email protected]?subject=Testing&body=http://www.google.com?foo=1&bar=2'>Send mail</a>
然而,第二个参数(bar)被截断,因为它被视为mailto链接的参数而不是我放入身体的链接。我尝试了& amp;
,但它的作用是一样的,因为它已经被渲染到链接中。
However the second argument (bar) is cut off because it is seen as an argument of the mailto link and not the link I'm putting in the body. I tried &
but it does the same thing since it's being rendered into the link.
推荐答案
类似这样的事情:
What about something like this :
<a href='mailto:[email protected]?subject=Testing&body=http%3A%2F%2Fwww.google.com%3Ffoo%3D1%26bar%3D2'>Send mail</a>
即整个 body
字段,以确保没有任何问题?
ie, urlencoding the whole body
field, to make sure nothing causes any problem ?
这篇关于mailto:问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!