无法分配 var i = window.location.href

Can not assign var i = window.location.href

不知何故我无法分配

var i = window.location.href;

虽然这项工作

console.log(window.location.href);

我正在使用 JQuery 3.3.1

一定有用。

i = window.location.href

document.write( i )