添加键值对
var labelName = {}; labelName["Name"]="James" labelName["Sex"]="1"
结果:labelName={"Name":"James","Sex":1};
读取键值对
var getData ={"Label":"Dong","Sex":"1","Address":"China"}; $.each(getData, function (key, value) { …… })
删除键值对
var getData ={"Label":"Dong","Sex":"1","Address":"China"}; delete getData["Label"];标签:Jquery,Label,Sex,json,键值,labelName,var,getData From: https://www.cnblogs.com/firstcsharp/p/17683565.html