خرید بک لینک

Vote count: 0

How can I get my javascript library to support multiple events with on?

Here is the code for my on function:

Q.fn.on=function(event, fn){
    this[0]["on" + event] = fn;
};

Also how can my on function add events to multiple elements?

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 18 فروردين 1395 ساعت: 13:59

صفحه بندی