图中leaderuserid属性存的是json编码后的数据
var arr=[{
Key:1,Name:'物供'},{
Key:2,Name:'欧阳修'}];
//对象转json字符串,然后转换为编码数据
var userJson = encodeURIComponent(JSON.stringify(arr));
//转换为对象,有效防止div自定义属性中存json有引号问题
var obj3=JSON.parse(decodeURIComponent(userJson));