Notes on software and the ideas behind it
Find the meaning
behind the code.
I’m Fred Yang. I write about software—how it works, why it behaves the way it does, and the ideas that make code easier to reason about.
Open the notebookWorking notes / 2026
Recently mapped
Architecture, reactivity, and the hidden relationships that shape frontend systems.
jquery
the internal of $.end() method
jQuery methods that alter the original jQuery wrapper set selected are considered to be destructive.The reason being that they do not maintain the original state of the wrapper set. Not to worry;nothing is really...
Follow the thread
jquery
$.extend
extend function is used to extend jQuery object. We can use it to do extend normal object, jQuery utility and jQuery method.
Follow the thread
jquery
$(fn)
In jQuery, $(fn) is a short cut to $.fn.ready(fn). First you call the $.fn.ready(fn), in the function it call jQuery.bindReady() first, then add the fn to a readyList. In the jQuery.bindReady() function, it try...
Follow the thread
jquery
jQuery is an array like object
In javascript, array is object, so there are lots benefit to use array object, like the length, index, slice. jQuery is a collection of element, so use it as an array is very convenient....
Follow the thread
javascript
arguments.callee
var sum = function(i)
{
if (i == 1)
{
return i;
}
else
{
return i + arguments.callee(i-1);
}
}
alert(sum(3));
Follow the thread