location 属性
此窗口的当前位置。
Location currentLocation = window.location;
print(currentLocation.href); // 'http://www.example.com:80/'
实现
LocationBase get location;
此窗口的当前位置。
Location currentLocation = window.location;
print(currentLocation.href); // 'http://www.example.com:80/'
LocationBase get location;