📅  最后修改于: 2022-03-11 15:02:01.101000             🧑  作者: Mango
function resolve(path, obj) {
return path.split('.').reduce(function(prev, curr) {
return prev ? prev[curr] : null
}, obj || self)
}