emmmmmmm 这道题, 这样好像就行了吧? function get(obj,chain,defaaultVal){ with(obj)return eval(chain)||defaaultVal; }