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

如何获取 Proxy 所有的值?

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