mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-20 15:51:35 +08:00
26e6434b75
- hippy-vue: ElementNode add repaintWithChildren API - hippy-vue: support remove outdated style of HMR chunk - hippy-vue-loader: support style hmr - hippy-vue-css-loader: support remove outdated style of HMR chunk - debug-server, vue-demo, react-demo, hippy-react: support hmr - debug-server: add hippy-dev command
18 lines
398 B
JavaScript
18 lines
398 B
JavaScript
function parseURL(resourceQuery) {
|
|
const options = {};
|
|
|
|
if (typeof resourceQuery === 'string' && resourceQuery !== '') {
|
|
const searchParams = resourceQuery.substr(1).split('&');
|
|
|
|
for (let i = 0; i < searchParams.length; i++) {
|
|
const pair = searchParams[i].split('=');
|
|
|
|
options[pair[0]] = decodeURIComponent(pair[1]);
|
|
}
|
|
}
|
|
|
|
return options;
|
|
}
|
|
|
|
export default parseURL;
|