#006 ionic actionsheet 사용 코드

1183 단어
//      
$ionicActionSheet.show({
  buttons: [
    { text: '

' }, ], // destructiveText: 'Delete', titleText: ' , ', cancelText: ' ', buttonClicked: function(index) { if(index==0){ // localStorage.clear(); // RongCloudLibPlugin.logout( function(ret, err) { if (ret) { console.log("logout:" + JSON.stringify(ret)); expectResult = { status: 'success' }; if (jsonEqualsStruc(expectResult, ret)){ console.info("logout success!"); $state.go("login"); } else { console.error("logout error!"); console.error("expected:" + JSON.stringify(expectResult)); console.error("actural:" + JSON.stringify(ret)); } } if (err) { console.log("logout error:" + JSON.stringify(err)); } } ); } return true; } });

좋은 웹페이지 즐겨찾기