[問題] 請問es6 class的一些寫法問題

看板Ajax作者 (Lego)時間8年前 (2016/01/23 23:17), 8年前編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
我現在有一個 function foo { // do something } 我現在寫一個 class bar { // something } 我想讓 bar.prototype = foo; 我該怎麼把我樣怎麼讓這個語句寫在class內 求解 <(_ _)> -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.230.75.222 ※ 文章網址: https://www.ptt.cc/bbs/Ajax/M.1453562260.A.1EE.html

01/24 00:53, , 1F
Object.setPrototypeOf() <- google他
01/24 00:53, 1F
Sorry 遲遲沒有回 感謝你的回復~~ ※ 編輯: qas612820704 (61.216.33.201), 01/28/2016 12:38:36
文章代碼(AID): #1MevcK7k (Ajax)