推荐关注
› Meteor
› JSLint - a JavaScript code quality tool
› jsFiddle
› D3.js
› WebStorm
推荐书目
› JavaScript 权威指南第 5 版
› Closure: The Definitive Guide
hoythan

如何获取 Proxy 所有的值?

  •  
  •   hoythan ·
    PRO
    · Jul 20, 2018 · 3942 views
    This topic created in 3024 days ago, the information mentioned may be changed or developed.
    const hello = new Proxy(obj,{...})
    

    然后我需要获取 hello 所有的值

    直接返回 hello 是 proxy 类型的,怎么拿到里面的值?

    =======

    知道答案了

    {...hello}
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5153 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 06:18 · PVG 14:18 · LAX 23:18 · JFK 02:18
    ♥ Do have faith in what you're doing.