var s = {
"a":[{
"name":"...",
"dec":".."
}],
"b":[{
"name":"...",
"dec":".."
}]
}
$("-sharpid").click(function(){
show("a")
})
function show(key){
$.each(s+"."+key, function(i,e) {
....
});
}
as above ~ console.log (s.a);
normal output
parameter transfer is incorrect
Cannot use "in" operator to search for" length" in [object Object] .a
solution