Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
michaellions
uni-app
提交
3cf64914
U
uni-app
项目概览
michaellions
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3cf64914
编写于
4月 15, 2022
作者:
fxy060608
提交者:
qiang
4月 15, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: substr => slice
上级
4940892a
变更
25
展开全部
隐藏空白更改
内联
并排
Showing
25 changed file
with
47 addition
and
49 deletion
+47
-49
packages/uni-api/src/protocols/route/encodeQueryString.ts
packages/uni-api/src/protocols/route/encodeQueryString.ts
+2
-2
packages/uni-api/src/protocols/route/route.ts
packages/uni-api/src/protocols/route/route.ts
+1
-1
packages/uni-app-plus/dist/uni-app-view.umd.js
packages/uni-app-plus/dist/uni-app-view.umd.js
+1
-1
packages/uni-app-plus/dist/uni.runtime.esm.js
packages/uni-app-plus/dist/uni.runtime.esm.js
+10
-10
packages/uni-app-plus/src/service/api/context/getBackgroundAudioManager.ts
...plus/src/service/api/context/getBackgroundAudioManager.ts
+1
-1
packages/uni-app-plus/src/service/api/network/request.ts
packages/uni-app-plus/src/service/api/network/request.ts
+1
-1
packages/uni-app-plus/src/service/framework/webview/utils.ts
packages/uni-app-plus/src/service/framework/webview/utils.ts
+4
-4
packages/uni-app-plus/src/view/components/map/index.tsx
packages/uni-app-plus/src/view/components/map/index.tsx
+2
-2
packages/uni-app-plus/src/view/framework/dom/utils.ts
packages/uni-app-plus/src/view/framework/dom/utils.ts
+1
-1
packages/uni-app-plus/src/view/framework/dom/wxs.ts
packages/uni-app-plus/src/view/framework/dom/wxs.ts
+2
-2
packages/uni-cli-shared/src/easycom.ts
packages/uni-cli-shared/src/easycom.ts
+1
-1
packages/uni-cli-shared/src/resolve.ts
packages/uni-cli-shared/src/resolve.ts
+1
-3
packages/uni-core/src/helpers/route.ts
packages/uni-core/src/helpers/route.ts
+1
-1
packages/uni-h5-vite/src/plugins/css.ts
packages/uni-h5-vite/src/plugins/css.ts
+1
-1
packages/uni-h5-vite/src/plugins/pagesJson.ts
packages/uni-h5-vite/src/plugins/pagesJson.ts
+1
-1
packages/uni-h5/dist/uni-h5.cjs.js
packages/uni-h5/dist/uni-h5.cjs.js
+2
-2
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+6
-6
packages/uni-h5/src/platform/dom.ts
packages/uni-h5/src/platform/dom.ts
+1
-1
packages/uni-h5/src/service/api/context/createInnerAudioContext.ts
...uni-h5/src/service/api/context/createInnerAudioContext.ts
+2
-2
packages/uni-mp-alipay/dist/uni.mp.esm.js
packages/uni-mp-alipay/dist/uni.mp.esm.js
+1
-1
packages/uni-mp-alipay/src/runtime/util.ts
packages/uni-mp-alipay/src/runtime/util.ts
+1
-1
packages/uni-mp-compiler/src/decodeHtml.ts
packages/uni-mp-compiler/src/decodeHtml.ts
+1
-1
packages/uni-shared/dist/uni-shared.cjs.js
packages/uni-shared/dist/uni-shared.cjs.js
+1
-1
packages/uni-shared/dist/uni-shared.es.js
packages/uni-shared/dist/uni-shared.es.js
+1
-1
packages/uni-shared/src/utils.ts
packages/uni-shared/src/utils.ts
+1
-1
未找到文件。
packages/uni-api/src/protocols/route/encodeQueryString.ts
浏览文件 @
3cf64914
...
...
@@ -7,13 +7,13 @@ export function encodeQueryString(url: string) {
return
url
}
const
query
=
url
.
s
ubstr
(
index
+
1
)
.
s
lice
(
index
+
1
)
.
trim
()
.
replace
(
/^
(\?
|#|&
)
/
,
''
)
if
(
!
query
)
{
return
url
}
url
=
url
.
s
ubstr
(
0
,
index
)
url
=
url
.
s
lice
(
0
,
index
)
const
params
:
string
[]
=
[]
query
.
split
(
'
&
'
).
forEach
((
param
)
=>
{
const
parts
=
param
.
replace
(
/
\+
/g
,
'
'
).
split
(
'
=
'
)
...
...
packages/uni-api/src/protocols/route/route.ts
浏览文件 @
3cf64914
...
...
@@ -181,7 +181,7 @@ function createNormalizeUrl(type: string) {
}
if
(
routeOptions
.
meta
.
isTabBar
)
{
const
pages
=
getCurrentPages
()
const
tabBarPagePath
=
routeOptions
.
path
.
s
ubstr
(
1
)
const
tabBarPagePath
=
routeOptions
.
path
.
s
lice
(
1
)
if
(
pages
.
find
((
page
)
=>
page
.
route
===
tabBarPagePath
))
{
return
'
tabBar page `
'
+
tabBarPagePath
+
'
` already exists
'
}
...
...
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
3cf64914
此差异已折叠。
点击以展开。
packages/uni-app-plus/dist/uni.runtime.esm.js
浏览文件 @
3cf64914
...
...
@@ -1609,7 +1609,7 @@ function getRealRoute(fromRoute, toRoute) {
return toRoute;
}
if (toRoute.indexOf('./') === 0) {
return getRealRoute(fromRoute, toRoute.s
ubstr
(2));
return getRealRoute(fromRoute, toRoute.s
lice
(2));
}
const toRouteArray = toRoute.split('/');
const toRouteLength = toRouteArray.length;
...
...
@@ -11956,13 +11956,13 @@ function encodeQueryString(url) {
return url;
}
const query = url
.s
ubstr
(index + 1)
.s
lice
(index + 1)
.trim()
.replace(/^(\?|#|&)/, '');
if (!query) {
return url;
}
url = url.s
ubstr
(0, index);
url = url.s
lice
(0, index);
const params = [];
query.split('&').forEach((param) => {
const parts = param.replace(/\+/g, ' ').split('=');
...
...
@@ -12115,7 +12115,7 @@ function createNormalizeUrl(type) {
}
if (routeOptions.meta.isTabBar) {
const pages = getCurrentPages();
const tabBarPagePath = routeOptions.path.s
ubstr
(1);
const tabBarPagePath = routeOptions.path.s
lice
(1);
if (pages.find((page) => page.route === tabBarPagePath)) {
return 'tabBar page `' + tabBarPagePath + '` already exists';
}
...
...
@@ -14481,7 +14481,7 @@ const cookiesParse = (header) => {
};
function formatResponse(res, args) {
if (typeof res.data === 'string' && res.data.charCodeAt(0) === 65279) {
res.data = res.data.s
ubstr
(1);
res.data = res.data.s
lice
(1);
}
res.statusCode = parseInt(String(res.statusCode), 10);
if (isPlainObject(res.header)) {
...
...
@@ -15308,7 +15308,7 @@ function initMusic() {
if (event === 'pause' || event === 'ended' || event === 'stop') {
stopTimeUpdateTimer();
}
const eventName = `onMusic${event[0].toUpperCase() + event.s
ubstr
(1)}`;
const eventName = `onMusic${event[0].toUpperCase() + event.s
lice
(1)}`;
publish(eventName, {
dataUrl: audio.src,
errMsg: `${eventName}:ok`,
...
...
@@ -17475,8 +17475,8 @@ function encode(val) {
function initUniPageUrl(path, query) {
const queryString = query ? stringifyQuery$1(query, encode) : '';
return {
path: path.s
ubstr
(1),
query: queryString ? queryString.s
ubstr
(1) : queryString,
path: path.s
lice
(1),
query: queryString ? queryString.s
lice
(1) : queryString,
};
}
function initDebugRefresh(isTab, path, query) {
...
...
@@ -17484,8 +17484,8 @@ function initDebugRefresh(isTab, path, query) {
return {
isTab,
arguments: JSON.stringify({
path: path.s
ubstr
(1),
query: queryString ? queryString.s
ubstr
(1) : queryString,
path: path.s
lice
(1),
query: queryString ? queryString.s
lice
(1) : queryString,
}),
};
}
...
...
packages/uni-app-plus/src/service/api/context/getBackgroundAudioManager.ts
浏览文件 @
3cf64914
...
...
@@ -127,7 +127,7 @@ function initMusic() {
stopTimeUpdateTimer
()
}
const
eventName
=
`onMusic
${
event
[
0
].
toUpperCase
()
+
event
.
s
ubstr
(
1
)}
`
const
eventName
=
`onMusic
${
event
[
0
].
toUpperCase
()
+
event
.
s
lice
(
1
)}
`
publish
(
eventName
,
{
dataUrl
:
audio
.
src
,
errMsg
:
`
${
eventName
}
:ok`
,
...
...
packages/uni-app-plus/src/service/api/network/request.ts
浏览文件 @
3cf64914
...
...
@@ -54,7 +54,7 @@ const cookiesParse = (header: Record<string, string>) => {
function
formatResponse
(
res
:
RequestTaskState
,
args
:
UniApp
.
RequestOptions
)
{
if
(
typeof
res
.
data
===
'
string
'
&&
res
.
data
.
charCodeAt
(
0
)
===
65279
)
{
res
.
data
=
res
.
data
.
s
ubstr
(
1
)
res
.
data
=
res
.
data
.
s
lice
(
1
)
}
res
.
statusCode
=
parseInt
(
String
(
res
.
statusCode
),
10
)
...
...
packages/uni-app-plus/src/service/framework/webview/utils.ts
浏览文件 @
3cf64914
...
...
@@ -20,8 +20,8 @@ export type DebugRefresh = ReturnType<typeof initDebugRefresh>
export
function
initUniPageUrl
(
path
:
string
,
query
:
Record
<
string
,
any
>
)
{
const
queryString
=
query
?
stringifyQuery
(
query
,
encode
)
:
''
return
{
path
:
path
.
s
ubstr
(
1
),
query
:
queryString
?
queryString
.
s
ubstr
(
1
)
:
queryString
,
path
:
path
.
s
lice
(
1
),
query
:
queryString
?
queryString
.
s
lice
(
1
)
:
queryString
,
}
}
...
...
@@ -34,8 +34,8 @@ export function initDebugRefresh(
return
{
isTab
,
arguments
:
JSON
.
stringify
({
path
:
path
.
s
ubstr
(
1
),
query
:
queryString
?
queryString
.
s
ubstr
(
1
)
:
queryString
,
path
:
path
.
s
lice
(
1
),
query
:
queryString
?
queryString
.
s
lice
(
1
)
:
queryString
,
}),
}
}
packages/uni-app-plus/src/view/components/map/index.tsx
浏览文件 @
3cf64914
...
...
@@ -47,9 +47,9 @@ function parseHex(color: string) {
opacity
:
1
,
}
}
const
opacity
=
color
.
s
ubstr
(
7
,
2
)
const
opacity
=
color
.
s
lice
(
7
,
9
)
return
{
color
:
color
.
s
ubstr
(
0
,
7
),
color
:
color
.
s
lice
(
0
,
7
),
opacity
:
opacity
?
Number
(
'
0x
'
+
opacity
)
/
255
:
1
,
}
}
...
...
packages/uni-app-plus/src/view/framework/dom/utils.ts
浏览文件 @
3cf64914
...
...
@@ -11,7 +11,7 @@ export function decodeAttr(el: UniCustomElement, value: unknown) {
return
value
}
if
(
value
.
indexOf
(
JSON_PROTOCOL
)
===
0
)
{
value
=
JSON
.
parse
(
value
.
s
ubstr
(
JSON_PROTOCOL_LEN
))
value
=
JSON
.
parse
(
value
.
s
lice
(
JSON_PROTOCOL_LEN
))
}
else
if
(
value
.
indexOf
(
WXS_PROTOCOL
)
===
0
)
{
value
=
invokeWxs
(
el
,
value
)
}
...
...
packages/uni-app-plus/src/view/framework/dom/wxs.ts
浏览文件 @
3cf64914
...
...
@@ -86,7 +86,7 @@ function resolveOwnerEl(el: UniCustomElement, ownerId: number) {
}
function
parseWxs
(
wxsStr
:
string
)
{
return
JSON
.
parse
(
wxsStr
.
s
ubstr
(
WXS_PROTOCOL_LEN
))
as
[
return
JSON
.
parse
(
wxsStr
.
s
lice
(
WXS_PROTOCOL_LEN
))
as
[
number
,
string
,
string
,
...
...
@@ -140,7 +140,7 @@ function getWxsProp(
if
(
!
module
)
{
return
console
.
error
(
formatLog
(
'
wxs
'
,
'
module
'
+
dataPath
+
'
not found
'
))
}
return
getValueByDataPath
(
module
,
dataPath
.
s
ubstr
(
dataPath
.
indexOf
(
'
.
'
)
+
1
))
return
getValueByDataPath
(
module
,
dataPath
.
s
lice
(
dataPath
.
indexOf
(
'
.
'
)
+
1
))
}
export
type
WxsPropsInvoker
=
(
newValue
:
unknown
)
=>
void
...
...
packages/uni-cli-shared/src/easycom.ts
浏览文件 @
3cf64914
...
...
@@ -124,7 +124,7 @@ function initEasycom({
Object
.
keys
(
custom
).
forEach
((
name
)
=>
{
const
componentPath
=
custom
[
name
]
easycomsObj
[
name
]
=
componentPath
.
startsWith
(
'
@/
'
)
?
normalizePath
(
path
.
join
(
rootDir
!
,
componentPath
.
s
ubstr
(
2
)))
?
normalizePath
(
path
.
join
(
rootDir
!
,
componentPath
.
s
lice
(
2
)))
:
componentPath
})
}
...
...
packages/uni-cli-shared/src/resolve.ts
浏览文件 @
3cf64914
...
...
@@ -47,9 +47,7 @@ function resolveNodeModulePath(modulePath: string) {
}
const
index
=
modulePath
.
lastIndexOf
(
'
node_modules
'
)
if
(
index
>
-
1
)
{
nodeModulesPaths
.
push
(
path
.
join
(
modulePath
.
substr
(
0
,
index
),
'
node_modules
'
)
)
nodeModulesPaths
.
push
(
path
.
join
(
modulePath
.
slice
(
0
,
index
),
'
node_modules
'
))
}
return
nodeModulesPaths
}
...
...
packages/uni-core/src/helpers/route.ts
浏览文件 @
3cf64914
...
...
@@ -17,7 +17,7 @@ export function getRealRoute(fromRoute: string, toRoute: string): string {
return
toRoute
}
if
(
toRoute
.
indexOf
(
'
./
'
)
===
0
)
{
return
getRealRoute
(
fromRoute
,
toRoute
.
s
ubstr
(
2
))
return
getRealRoute
(
fromRoute
,
toRoute
.
s
lice
(
2
))
}
const
toRouteArray
=
toRoute
.
split
(
'
/
'
)
const
toRouteLength
=
toRouteArray
.
length
...
...
packages/uni-h5-vite/src/plugins/css.ts
浏览文件 @
3cf64914
...
...
@@ -122,7 +122,7 @@ export function assetFileNamesToFileName(
// placeholders for `assetFileNames`
// `hash` is slightly different from the rollup's one
const
extname
=
path
.
extname
(
basename
)
const
ext
=
extname
.
s
ubstr
(
1
)
const
ext
=
extname
.
s
lice
(
1
)
const
name
=
basename
.
slice
(
0
,
-
extname
.
length
)
const
hash
=
contentHash
...
...
packages/uni-h5-vite/src/plugins/pagesJson.ts
浏览文件 @
3cf64914
...
...
@@ -239,7 +239,7 @@ ${globalName}.__uniRoutes=[${[
...
generatePagesRoute
(
normalizePagesRoute
(
pagesJson
),
config
),
].
join
(
'
,
'
)}
].map(uniRoute=>(uniRoute.meta.route = (uniRoute.alias || uniRoute.path).s
ubstr
(1),uniRoute))`
)}
].map(uniRoute=>(uniRoute.meta.route = (uniRoute.alias || uniRoute.path).s
lice
(1),uniRoute))`
}
function
generateConfig
(
...
...
packages/uni-h5/dist/uni-h5.cjs.js
浏览文件 @
3cf64914
...
...
@@ -349,7 +349,7 @@ function getRealRoute(fromRoute, toRoute) {
return
toRoute
;
}
if
(
toRoute
.
indexOf
(
"
./
"
)
===
0
)
{
return
getRealRoute
(
fromRoute
,
toRoute
.
s
ubstr
(
2
));
return
getRealRoute
(
fromRoute
,
toRoute
.
s
lice
(
2
));
}
const
toRouteArray
=
toRoute
.
split
(
"
/
"
);
const
toRouteLength
=
toRouteArray
.
length
;
...
...
@@ -899,7 +899,7 @@ function getRealPath(filePath) {
}
const
pages
=
getCurrentPages
();
if
(
pages
.
length
)
{
return
addBase
(
getRealRoute
(
pages
[
pages
.
length
-
1
].
$page
.
route
,
filePath
).
s
ubstr
(
1
));
return
addBase
(
getRealRoute
(
pages
[
pages
.
length
-
1
].
$page
.
route
,
filePath
).
s
lice
(
1
));
}
return
filePath
;
}
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
3cf64914
...
...
@@ -989,7 +989,7 @@ function getRealRoute(fromRoute, toRoute) {
return toRoute;
}
if (toRoute.indexOf("./") === 0) {
return getRealRoute(fromRoute, toRoute.s
ubstr
(2));
return getRealRoute(fromRoute, toRoute.s
lice
(2));
}
const toRouteArray = toRoute.split("/");
const toRouteLength = toRouteArray.length;
...
...
@@ -2012,7 +2012,7 @@ function getRealPath(filePath) {
}
const pages = getCurrentPages();
if (pages.length) {
return addBase(getRealRoute(pages[pages.length - 1].$page.route, filePath).s
ubstr
(1));
return addBase(getRealRoute(pages[pages.length - 1].$page.route, filePath).s
lice
(1));
}
return filePath;
}
...
...
@@ -5102,11 +5102,11 @@ function encodeQueryString(url) {
if (index2 === -1) {
return url;
}
const query = url.s
ubstr
(index2 + 1).trim().replace(/^(\?|#|&)/, "");
const query = url.s
lice
(index2 + 1).trim().replace(/^(\?|#|&)/, "");
if (!query) {
return url;
}
url = url.s
ubstr
(0, index2);
url = url.s
lice
(0, index2);
const params = [];
query.split("&").forEach((param) => {
const parts = param.replace(/\+/g, " ").split("=");
...
...
@@ -5232,7 +5232,7 @@ function createNormalizeUrl(type) {
} else if (type === API_PRELOAD_PAGE) {
if (routeOptions.meta.isTabBar) {
const pages = getCurrentPages();
const tabBarPagePath = routeOptions.path.s
ubstr
(1);
const tabBarPagePath = routeOptions.path.s
lice
(1);
if (pages.find((page) => page.route === tabBarPagePath)) {
return "tabBar page `" + tabBarPagePath + "` already exists";
}
...
...
@@ -16110,7 +16110,7 @@ class InnerAudioContext {
if (this._stoping && stopEventNames.indexOf(eventName) >= 0) {
return;
}
const EventName = `on${eventName.s
ubstr(0, 1).toUpperCase()}${eventName.substr
(1)}`;
const EventName = `on${eventName.s
lice(0, 1).toUpperCase()}${eventName.slice
(1)}`;
this._events[EventName].forEach((callback) => {
callback();
});
...
...
packages/uni-h5/src/platform/dom.ts
浏览文件 @
3cf64914
...
...
@@ -56,7 +56,7 @@ export function getRealPath(filePath: string) {
const
pages
=
getCurrentPages
()
if
(
pages
.
length
)
{
return
addBase
(
getRealRoute
(
pages
[
pages
.
length
-
1
].
$page
.
route
,
filePath
).
s
ubstr
(
1
)
getRealRoute
(
pages
[
pages
.
length
-
1
].
$page
.
route
,
filePath
).
s
lice
(
1
)
)
}
...
...
packages/uni-h5/src/service/api/context/createInnerAudioContext.ts
浏览文件 @
3cf64914
...
...
@@ -189,8 +189,8 @@ class InnerAudioContext implements UniApp.InnerAudioContext {
return
}
const
EventName
=
`on
${
eventName
.
s
ubstr
(
0
,
1
)
.
toUpperCase
()}${
eventName
.
s
ubstr
(
1
)}
`
as
InnerAudioContextEvent
.
s
lice
(
0
,
1
)
.
toUpperCase
()}${
eventName
.
s
lice
(
1
)}
`
as
InnerAudioContextEvent
this
.
_events
[
EventName
]
!
.
forEach
((
callback
)
=>
{
callback
()
})
...
...
packages/uni-mp-alipay/dist/uni.mp.esm.js
浏览文件 @
3cf64914
...
...
@@ -691,7 +691,7 @@ function initSpecialMethods(mpInstance) {
return
;
}
if
(
path
.
indexOf
(
'
/
'
)
===
0
)
{
path
=
path
.
s
ubstr
(
1
);
path
=
path
.
s
lice
(
1
);
}
const
specialMethods
=
my
.
specialMethods
&&
my
.
specialMethods
[
path
];
if
(
specialMethods
)
{
...
...
packages/uni-mp-alipay/src/runtime/util.ts
浏览文件 @
3cf64914
...
...
@@ -53,7 +53,7 @@ export function initSpecialMethods(
return
}
if
(
path
.
indexOf
(
'
/
'
)
===
0
)
{
path
=
path
.
s
ubstr
(
1
)
path
=
path
.
s
lice
(
1
)
}
const
specialMethods
=
(
my
as
any
).
specialMethods
&&
(
my
as
any
).
specialMethods
[
path
]
...
...
packages/uni-mp-compiler/src/decodeHtml.ts
浏览文件 @
3cf64914
...
...
@@ -42,7 +42,7 @@ export const decodeHtml: ParserOptions['decodeEntities'] = (
)
}
for
(
let
length
=
maxCRNameLength
;
!
value
&&
length
>
0
;
--
length
)
{
name
=
rawText
.
s
ubstr
(
1
,
length
)
name
=
rawText
.
s
lice
(
1
,
1
+
length
)
value
=
(
namedCharacterReferences
as
Record
<
string
,
string
>
)[
name
]
}
if
(
value
)
{
...
...
packages/uni-shared/dist/uni-shared.cjs.js
浏览文件 @
3cf64914
...
...
@@ -332,7 +332,7 @@ function addLeadingSlash(str) {
return
hasLeadingSlash
(
str
)
?
str
:
'
/
'
+
str
;
}
function
removeLeadingSlash
(
str
)
{
return
hasLeadingSlash
(
str
)
?
str
.
s
ubstr
(
1
)
:
str
;
return
hasLeadingSlash
(
str
)
?
str
.
s
lice
(
1
)
:
str
;
}
const
invokeArrayFns
=
(
fns
,
arg
)
=>
{
let
ret
;
...
...
packages/uni-shared/dist/uni-shared.es.js
浏览文件 @
3cf64914
...
...
@@ -328,7 +328,7 @@ function addLeadingSlash(str) {
return
hasLeadingSlash
(
str
)
?
str
:
'
/
'
+
str
;
}
function
removeLeadingSlash
(
str
)
{
return
hasLeadingSlash
(
str
)
?
str
.
s
ubstr
(
1
)
:
str
;
return
hasLeadingSlash
(
str
)
?
str
.
s
lice
(
1
)
:
str
;
}
const
invokeArrayFns
=
(
fns
,
arg
)
=>
{
let
ret
;
...
...
packages/uni-shared/src/utils.ts
浏览文件 @
3cf64914
...
...
@@ -25,7 +25,7 @@ export function addLeadingSlash(str: string) {
}
export
function
removeLeadingSlash
(
str
:
string
)
{
return
hasLeadingSlash
(
str
)
?
str
.
s
ubstr
(
1
)
:
str
return
hasLeadingSlash
(
str
)
?
str
.
s
lice
(
1
)
:
str
}
export
const
invokeArrayFns
=
(
fns
:
Function
[],
arg
?:
any
)
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录