chenyao
2025-02-18 b5591da48cf8cc2a3c3f76eec86dfdfa5bf47485
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('&');
};