Maison > Questions et réponses > le corps du texte
定义的url路由路径 如何换成
这种形式 跳转到一个新的标签页
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>