chenyao
2025-02-10 4b57dc340f08f7c517a5eb255275b91785724c53
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('&');
};