当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Dart WindowBase.location用法及代码示例


dart:html 库中WindowBase.location 属性的用法介绍如下。

用法:

LocationBase location

此窗口的当前位置。

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

相关用法


注:本文由纯净天空筛选整理自dart.dev大神的英文原创作品 location property。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。