js && vue跳轉頁面打開新窗口




跳轉新窗口主要依賴的是<a/>標簽 

html實現:

<a href="https://www/baidu.com" target="_blank"/>

 vue 實現

const { href } = this.$router.resolve({
          path: "/visual/detail",
          query: {
                  userNum: this.activeUserNum,
                  dateRange: this.dateRange,
                  keyName: this.keyName,
                  athUrl: this.pathUrl,
                  uname: this.uname,
                },
 });
window.open(href, "_blank");

  

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM