我正在开发Angular Web应用程序
我要在 web.watsapp.com https://web.whatsapp.com/上共享我的内容的地方,
我已经用两种方法尝试过了,但是没有用
这是我的代码
第一次尝试->
<a href="whatsapp://send?text=Proof%20That%20European%20Festival%20Fashion%20Is%20Better%20Than%20American%20Fashion%0A%0Ahttp%3A%2F%2Fwww.buzzfeed.com%2Fazafar%2Fproof-that-european-festival-fashion-is-better-than-american%3Fbfwa">Share2</a>
第二次尝试->
<a href="whatsapp://send" data-text="Take a look at this awesome website:" data-href="" class="wa_btn wa_btn_s" style="display:none">Share1</a>
答案 0 :(得分:0)
如果您想使用whatsapp网站,则可以使用此代码
<a href="https://web.whatsapp.com/send?text=www.google.com" data-text="Take a look at this awesome website:" class="wa_btn wa_btn_s" style="display:none">Share1</a>
如果用于移动Whatsapp
<a href="whatsapp://send?text=www.google.com" data-text="Take a look at this awesome website:" class="wa_btn wa_btn_s" style="display:none">Share1</a>