标签: location.assign
thumbnail

html的location.assign怎么使用

在HTML中,可以使用JavaScript的`location.assign()`方法来改变当前窗口的URL地址。该方法的语法如下: ```javascriptlocation.assign(url);``` 其中,`url`……