钥匙:[id,name,address]
价值:[7,John,NewYork]
我希望创建一个 json 数据,例如{"id": 7, "name": "John", "address": "NewYork"}使用 for(...){...},
然后返回给ajax
$.ajax({
//what kind of format should json data be here?
data:??json data??,
dataType: 'json',
});
Run Code Online (Sandbox Code Playgroud)
请帮我