V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
hoythan

如何获取 Proxy 所有的值?

  •  
  •   hoythan · Jul 20, 2018 · 3633 views
    This topic created in 2850 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   ·   Solana   ·   2982 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:51 · PVG 22:51 · LAX 07:51 · JFK 10:51
    ♥ Do have faith in what you're doing.