var str = "{"name":'小明',"type":'班长',"count":"2"}";var obj = eval("("+str+")");obj.nameobj.typeobj.count