![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JQuery
hzgang811856054
这个作者很懒,什么都没留下…
展开
-
js实现trim功能
function trim(s) { return s.replace(/^\s+|\s+$/g, "");}function ltrim(s) { return s.replace(/^\s+/, "");}function rtrim(stringToTrim) { return stringToTrim.replace(/\s+$/, "转载 2012-03-06 11:16:08 · 429 阅读 · 0 评论 -
jQuery中$与$()的区别?
jQuery中$与$()的区别? Javascript代码jQuery = window.jQuery = window.$ = function( selector, context ) { 1. // The jQuery object is actually just the init constructor 'enhanced' 2.转载 2012-12-20 17:45:31 · 5551 阅读 · 0 评论