Tuesday, 17 September 2013

How do I create a prefix like jQuery does?

How do I create a prefix like jQuery does?

How do I create a prefix like the one jQuery uses? For example, in jQuery
I can use:
$(".footer").css('display', 'none');
and I'd like to enable a similar syntax, like this:
google('.footer').chrome('display', 'none');
I have searched Google for an answer, but couldn't find it.

No comments:

Post a Comment