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;