MCPcopy Create free account
hub / github.com/zxlie/FeHelper / parseFormData

Function parseFormData

apps/postman/sw.js:131–138  ·  view source on GitHub ↗
(formDataString)

Source from the content-addressed store, hash-verified

129
130// 解析表单数据
131function parseFormData(formDataString) {
132 const params = new URLSearchParams(formDataString);
133 const result = {};
134 for (const [key, value] of params) {
135 result[key] = value;
136 }
137 return result;
138}
139
140// Service Worker安装事件
141self.addEventListener('install', (event) => {

Callers 1

handleMockRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected