![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jQuery
ustbsmartcar
这个作者很懒,什么都没留下…
展开
-
jQuery 的原型关系图
图例: 黄色的为对象,蓝色的为函数:原创 2012-03-13 15:57:13 · 188 阅读 · 0 评论 -
[从jQuery看JavaScript]-匿名函数与闭包(Anonymous Function and Closure)(转)
jQuery片段: (function(){ //这里忽略jQuery所有实现 })(); 半年前初次接触jQuery的时候,我也像其他人一样很兴奋地想看看源码是什么样的。然而,在看到源码的第一眼,我就迷糊了。为什么只有一个匿名函数又没看到运行(当然是运行了……),就能有jQuery这么个函数库了?于是,我抱着疑问来到CSDN。结果相信现在很多人都很清楚了(因为在我之后也不...原创 2012-03-13 16:43:33 · 117 阅读 · 0 评论 -
jquery中val,text,html,attr的区别
1.html() 类似于javascript众的InnerHtml属性,可以用来读取或者设置某个元素中的HTML内容 例如: Java代码 1. <p><strong>Hello world</strong></p> 2. 3. alert($('p').html()); ...原创 2012-03-29 14:33:18 · 63 阅读 · 0 评论 -
select通用实时排序
function generalSelectSort(selector_id,value,text) { var first = ''; if ($("#"+selector_id).children("option").length === 0) { $("#operation_selector").append('<opti...2013-07-26 16:37:57 · 92 阅读 · 0 评论