webComponents
0 人感兴趣 · 2 次引用
- 最新
- 推荐

Web Components 系列(十一)—— 实现 MyCard 的可复用
今天我们通过使用具名 Slots 在 Templates 中占位,然后再在自定义元素中给 Slots 传值,提高自定义元素的灵活性。

Web Components 系列(十)—— 实现 MyCard 的基本布局
理论知识基本上够用了,从现在开始我们需要将理论运用到实践中,让理论为实践服务,使用 Web Components 的相关知识来实现 MyCard 的制作。