chenyao
2025-03-15 e9c5da455e223c6463b8d64d5663221b19ceb297
1
2
3
4
5
6
7
8
//表单序列化
export const serialize = (data:any) => {
  let list:any[] = [];
  Object.keys(data).forEach((ele) => {
      list.push(`${ele}=${data[ele]}`);
  });
  return list.join('&');
};