资 源 简 介
Whengets
This is a simple libray (a couple of dozen lines !) to allows fluid set up of javascript events.
E.G
_When(“#button1”).Gets(“click”).Fire(“myHandler”)_
The object of this is to make javascript clearer to read, and easier to de bug. Another benefit is by encouraging all operations to be in functions, better unit testing can be achieved (for unit test in JS try jasmine, its great)
Requires jquery