我如何可以调用这个函数通过一个按钮通过一个按钮调用函数
module.controller('MyCtrl', function($scope, $cordovaSocialSharing) {
$cordovaSocialSharing
.share(message, subject, file, link) // Share via native share sheet
.then(function(result) {
// Success!
}, function(err) {
// An error occured. Show a message to the user
});
})
'ng-click =“myFunctionName()”'括号括起来 – floribon
@floribon感谢heads.I做了那些改变:) –
你可以放一个完整的代码示例吗? – jamil