首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
一些字段为空则不返回,不为空则放到对象中
一些字段为空则不返回,不为空则放到对象中
mac
2024-03-17
32
function getReqData(){ let obj = {} let objList = ['a','b','c','d','e'] objList.forEach(function(item){ let result = getQueryString(item) if( result ){ obj[item] = result } }) return obj }
转载请注明原文地址: https://mac.8miu.com/read-486404.html
最新回复
(
0
)