location 属性

LocationBase location

当前窗口的位置。

Location currentLocation = window.location;
print(currentLocation.href); // 'http://www.example.com:80/'

实现

LocationBase get location;