Assigning to [removed].href without clobbering history

前端 未结 6 1240
渐次进展
渐次进展 2020-12-01 19:04

In testing document.location.href, I have observed that when the user initiates an action that results in javascript that assigns to document.location.href, the new URL is a

6条回答
  •  春和景丽
    2020-12-01 19:44

    Read the original question more carefully. The question is not about content loaded by an XHR, but about content loaded by a script loaded by an XHR. I had the same problem and the setTimeout method seems to work well.

提交回复
热议问题