Object-Oriented Javascript borrow context for event handling
In object oriented Javascript programing, I used the following method to create “class”(in fact, there’s no class concept in Javascript): var MyObj = function(){ }; MyObj.prototype={ aaa : function(){ } , bbb : function(){ } , ccc : function(){ } }; Now I want to implement: Click an element in the page, call the aaa… Read More »