Coder
Bridge
探索
閱讀
學習
贊助
社群
會員登入
註冊會員
typescript 的動態新增物件屬性
luckstar77
今天遇到一個問題,有一個物件會依據收到的資料去新增屬性,可以利用這段語法達到想要的效果。
interface Dividend { [key: string]: DividendState[] }
#nodejs
#node.js
#js
#ts
#TypeScript
luckstar77
Follow
Following
你可能感興趣的文章
Post-Exploitation Basics Walkthrough
nathan2009729
JavaScript判斷式
oack7426
Day02_Origami學習筆記
liaoyuxian
留言討論
提交送出
編輯
提交送出
編輯
提交送出
回覆
提交送出
歡迎回家
×
使用 Github 帳號登入
使用 Google 帳號登入
免費加入 CoderBridge
×
使用 Github 帳號註冊
使用 Google 帳號註冊