UNPKG
@xmini/qs
Version:
latest (0.1.5)
0.1.5
qs
@xmini/qs
/
format.js
19 lines
(17 loc)
•
310 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
formatUrl
= formatUrl;
/** * URL格式化 * *
@param
{
string
} url 数据 *
@returns
{
string
} 返回新的 url */
function
formatUrl
(
url
) {
if
(!url)
return
;
let
newUrl =
''
; newUrl = url;
return
newUrl; }