摘要:
研究fabricjs中发现,它提供canvas.on('mousemove', hh) 来绑定事件, 提供 canvas.off()来取消绑定事件这样的接口,很是方便, 那我们就不妨探究一下内在的实现原理: 通过 addEventListener() 可以对同一个事件绑定多个处理处理函数, 而通过 阅读全文
摘要:
I've talked about the timing of directives in AngularJS a few times before. But, it's a rather complicated topic, so I don't mind digging a bit deeper 阅读全文