dwatow / dwatow.github.io

index for repository
http://dwatow.github.io
2 stars 2 forks source link

Proxy Pattern in JS - 《Chris 技術筆記》 #277

Open dwatow opened 1 year ago

dwatow commented 1 year ago

https://dwatow.github.io/2022/11-10-pattern/proxy-in-js/

¶Proxy Pattern in JS ¶在 Design Pattern 上的實作 ¶做相同的事情 在操作屬性的讀取值時,想要做「相同」的事 在此,就先做「印出字串」 const target = { name: 'target', message1: "hello", message2: "everyone"&#1