摘要: https://msdn.itellyou.cn/ https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/ 阅读全文
posted @ 2020-11-17 11:22 ndgail 阅读(102) 评论(0) 推荐(0)
摘要: var str="abcdafgahiAbcAfgAhi"; var newstr = str.replace("a","o"); //obcdafgahiAbcAfgAhi (只替换一次) newstr = str.replace(/a/g,"o"); //obcdofgohiAbcAfgAhi 阅读全文
posted @ 2017-05-25 16:58 ndgail 阅读(82) 评论(0) 推荐(0)
摘要: http://www.365mini.com/page/jquery-append.htm 阅读全文
posted @ 2017-05-16 15:24 ndgail 阅读(57) 评论(0) 推荐(0)
摘要: 在jQuery 1.6之前,只有attr()函数可用,该函数不仅承担了attribute的设置和获取工作,还同时承担了property的设置和获取工作。例如:在jQuery 1.6之前,attr()也可以设置或获取tagName、className、nodeName、nodeType等DOM元素的p 阅读全文
posted @ 2017-05-16 14:30 ndgail 阅读(297) 评论(0) 推荐(0)
摘要: 引用自 http://lishuaishuai.iteye.com/blog/2338341 在Javascript中,父元素包含子元素,当给父元素设置onmouseover或onmouseout事件时,鼠标从父级移入子级的时候会多次触发onmouseover事件;鼠标从子级移入父级后再次移出的时候 阅读全文
posted @ 2017-05-12 17:48 ndgail 阅读(476) 评论(0) 推荐(0)