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

作者: qas612820704 (Lego)   2016-01-23 23:17:35
我現在有一個
function foo {
// do something
}
我現在寫一個
class bar {
// something
}
我想讓
bar.prototype = foo;
我該怎麼把我樣怎麼讓這個語句寫在class內
求解 <(_ _)>
作者: mmis1000 (秋月戀楓)   2016-01-24 00:53:00
Object.setPrototypeOf() <- google他

Links booklink

Contact Us: admin [ a t ] ucptt.com