test the toDataURL method
optimize the structrue of method _bindEvt.