作者qas612820704 (Lego)
看板Ajax
标题[问题] 请问es6 class的一些写法问题
时间Sat Jan 23 23:17:35 2016
我现在有一个
function foo {
// do something
}
我现在写一个
class bar {
// something
}
我想让
bar.prototype = foo;
我该怎麽把我样怎麽让这个语句写在class内
求解 <(_ _)>
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 125.230.75.222
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Ajax/M.1453562260.A.1EE.html
1F:→ mmis1000: Object.setPrototypeOf() <- google他 01/24 00:53
Sorry 迟迟没有回 感谢你的回复~~
※ 编辑: qas612820704 (61.216.33.201), 01/28/2016 12:38:36