UNPKG
pm-xe-utils
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
JavaScript 函数库、工具类
github.com/x-extends/xe-utils
x-extends/xe-utils
pm-xe-utils
/
helperGetLocatOrigin.js
8 lines
(5 loc)
•
239 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
staticLocation =
require
(
'./staticLocation'
)
function
helperGetLocatOrigin
(
) {
return
staticLocation ? (staticLocation.
origin
|| (staticLocation.
protocol
+
'//'
+ staticLocation.
host
)) :
''
}
module
.
exports
= helperGetLocatOrigin