Set [removed] with TypeScript

后端 未结 2 2047
死守一世寂寞
死守一世寂寞 2020-12-10 10:11

I am getting an error with the following TypeScript code:

 ///
 ///

        
2条回答
  •  情书的邮戳
    2020-12-10 10:32

    you have missed the href:

    Standard, To use window.location.href as window.location is technically an object containing:

    Properties
    hash 
    host 
    hostname
    href    <--- you need this
    pathname (relative to the host)
    port 
    protocol 
    search 
    

    try

     window.location.href = $link.attr('data-href');
    

提交回复
热议问题