<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
</script>
<script type="text/javascript">
$(window).load( function(){ console.log('Loading finished.'); } );
console.log($(window).load);
</script>
In chrome->console, it shows:
function (e,n,r){if("string"!=typeof e&&Sn)...
Loading finished.
Question:
In above scripts, this line:
$(window)
... is at the top, why its output is not at the beginning?Actually I want to check the handler in the event load, it should be
function(){ console.log('Loading finished.'); }
so:
a. how to output the event handler?
b. what does the output(function (e,n,r)...)
mean?