Javascript 使用Cordova社交共享插件在Sencha应用程序中使用超链接文本进行社交共享
我在sencha应用程序中添加了插件Javascript 使用Cordova社交共享插件在Sencha应用程序中使用超链接文本进行社交共享,javascript,cordova,extjs,whatsapp,socialshare,Javascript,Cordova,Extjs,Whatsapp,Socialshare,我在sencha应用程序中添加了插件 cordova plugin add nl.x-services.plugins.socialsharing 用于电子邮件共享图像和文本 window.plugins.socialsharing.ShareViaEmail('<a href="www.hello.com">Message via WhatsApp</a>', 'www/image/demo.png', 'https://hello.com', function()
cordova plugin add nl.x-services.plugins.socialsharing
用于电子邮件共享图像和文本
window.plugins.socialsharing.ShareViaEmail('<a href="www.hello.com">Message via WhatsApp</a>', 'www/image/demo.png', 'https://hello.com', function() {console.log('share ok')}, function(errormsg){alert(errormsg)})
window.plugins.socialsharing.shareViaWhatsApp('<a href="www.hello.com">Message via WhatsApp</a>', 'www/image/demo.png', 'https://hello.com', function() {console.log('share ok')}, function(errormsg){alert(errormsg)})
window.plugins.socialsharing.ShareViaEmail(“'www/image/demo.png','https://hello.com,函数(){console.log('share ok')},函数(errormsg){alert(errormsg)})
用于whatsapp共享图像和文本
window.plugins.socialsharing.ShareViaEmail('<a href="www.hello.com">Message via WhatsApp</a>', 'www/image/demo.png', 'https://hello.com', function() {console.log('share ok')}, function(errormsg){alert(errormsg)})
window.plugins.socialsharing.shareViaWhatsApp('<a href="www.hello.com">Message via WhatsApp</a>', 'www/image/demo.png', 'https://hello.com', function() {console.log('share ok')}, function(errormsg){alert(errormsg)})
window.plugins.socialsharing.shareViaWhatsApp(“'www/image/demo.png','https://hello.com,函数(){console.log('share ok')},函数(errormsg){alert(errormsg)})
该方法适用于电子邮件和whatsapp,但邮件在电子邮件中共享效果良好
比如,如果我们点击消息“Messagevia WhatsApp”,它将重定向到hello.com
但在whatsapp中,消息是与href标签共享的
请告诉我在whatsapp上共享超链接信息需要做什么。对不起,我不明白你想说什么。@LorenzMeyer我只想在whatsapp上共享文本。如果我们点击文本,它将被打开,网站将在href标签中定义,这是href标签将被隐藏的一个条件