如何创建带有函数参数的对象?
function hell(par1, par2) { return { par1 : par2 }; } hell(ID, 1);
我想要返回 { ID : 1 }
javascript object
javascript ×1
object ×1