UNPKG
magic-helper
Version:
latest (1.0.0)
1.0.0
this is magic helper
magic-helper
/
lib
/
common
/
params.js
10 lines
(9 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
PARAMS_LOCAL_KEY
}
from
'../constant'
;
// 获取完整的启动参数
export
const
getParams
= (
) => {
return
uni.
getStorageSync
(
PARAMS_LOCAL_KEY
); };
// 获取指定key的启动参数
export
const
getParamsByKey
= (
key
) => {
return
getParams
()[key]; };