# 将对象转成查询串

object2QueryString(object)

# params

  1. {object}: 需要转换的对象

# return

{string}: 返回转换后的串

# eg

const query = object2QueryString({
  id: 1,
  username: 'username',
  email: 'email',
  age: '',
  gender: true,
  updated: void 0,
  book: null,
  delete: false,
  f: NaN
})
// id=1&username=username&email=email&age=&gender=true&book=null&delete=false
1
2
3
4
5
6
7
8
9
10
11
12
Last Updated: 4/21/2021, 5:05:43 AM