SOURCE

let obj = {
  name: 'zhangli'
}
let newObj = new Proxy(obj, {
  get (target, key, receiver) {
  
  },
  set (target, key, receiver) {
   
  }
})
newObj.name = '123'

function test() {
	return '1211'
}

function* generator() {
  yield test()
  const a = '333'
  yield a
  return '789'
}
let g = generator()
console.log(g.next().value)
console.log(g.next().value)
console.log(g.next().value)
console.log(g.next().value)
console 命令行工具 X clear

                    
>
console