如何在“操作表”按钮

时间:2015-07-28 14:06:53

标签: javascript ionic

我有这样的控制器

   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,我该怎么做?

0 个答案:

没有答案