Maison  >  Questions et réponses  >  le corps du texte

angular.js - $state.go跳转到一个新的标签页

定义的url路由路径 如何换成

这种形式 跳转到一个新的标签页

PHP中文网PHP中文网2713 Il y a quelques jours582

répondre à tous(1)je répondrai

  • PHP中文网

    PHP中文网2017-05-15 16:58:52

    Deux façons, l'une est directement dans le code JavaScript :

    vm.url = 'hatches.roadshows.create';
    vm.urlHref = $state.href(vm.url);
    window.open(mv.urlHref);

    Le deuxième est directement en html :

    <a ui-sref="hatches.roadshow.create" target="_black">New Window State Go Link</a>

    répondre
    0
  • Annulerrépondre