主题
如果内置适配器无法满足需求,你可以自己编写适配器。
适配器只需要实现两个方法:read 和 write。
read
write
class MyAdapter { read() { // ... } write(data) { // ... } }