JavaScript with&eval妙用——根据表达式获取对象中对应的属性值
# JavaScript with&eval妙用——根据表达式获取对象中对应的属性值 ```javascript var noop = function () { }; var getValue = (propExp, obj) => { var result; try { var safeWindow = { alert: noop, confirm: noop, prompt: noop }; with (obj) { result = eval.call(safeWindow, propExp); } } catch (error) { } re...