window.name

132 阅读1分钟

window.name的使用:

  1. 为当前窗口定义名称。
  2. window.open时标记名称,防止重复打开页面。
window.name= "home"
window.open('/#/data', 'datae');