var strObj = JSON.parse(str_pin); //专程json对象
strObj.sort(paixu('val')); //对属性值进行排序
function paixu(property){
retrun function(a,b){
var value1 = a[property];
var value2 = b[property];
};
}
var strObj = JSON.parse(str_pin); //专程json对象
strObj.sort(paixu('val')); //对属性值进行排序
function paixu(property){
retrun function(a,b){
var value1 = a[property];
var value2 = b[property];
};
}