Possible Duplicate:
What is the meaning of “$” sign in JavaScript
Now this must seem to be an easy and stupid question to ask but I must know why we use the dollar ($
) symbol in jQuery and JavaScript.
I always put a dollar in my scripts but I actuary don't know why.
例如:
$('#Text').click(function () {
$('#Text').css('color', 'red')
});
这只是改变了文本的 colored颜色 ,当你点击它,但它证明了我的观点.