我有这样的控制器
var hideSheet = $ionicActionSheet.show({
buttons: [
{ text: 'Bet '+'on '+'<b>'+bookerName+'</b>'},
{ text: 'Bet with coins (12)' }
],
titleText: 'How you want to bet',
cancelText: 'Cancel',
cancel: function() {
// add cancel code..
},
buttonClicked: function(index) {
if (index === 0) {
console.log("button1");
} else if (index === 1) {
console.log("button2");
}
}
});
行动表工作正常。但是如何在点击按钮上添加外部URL,我该怎么做?