Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/372.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用Cordova社交共享插件在Sencha应用程序中使用超链接文本进行社交共享_Javascript_Cordova_Extjs_Whatsapp_Socialshare - Fatal编程技术网

Javascript 使用Cordova社交共享插件在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()

我在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() {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标签将被隐藏的一个条件