<div></div>
<script src='https://code.jquery.com/jquery-latest.js'></script>
<script>
var object = $('div');
object.on('event', function(){
var s = 0;
alert(JSON.stringify(arguments));
for(var i=1; i<arguments.length; i++) {
s += arguments[i];
}
alert(s);
});
object.trigger('event',[1,2,3,4]);
</script>