readme.md 271 B

这样写的话this指向的是触发事件元素本身 taskBox.on('click', '.destroy', function () {

            console.log(this);

)};

这样写的话this指向的Window, 因为箭头函数不改变this指向 taskBox.on('click', '.destroy', () => {

            console.log(this);

)};