返回数组中不重复的元素
摘要:
这是实现结构伪类only-of-type的部分代码: var ret= ["span","span","strong","span","b"] var norepeat = function(array){ var set = array.join(",")+","; while(array.length){ var el = array.shift(); set = set.replace(el... 阅读全文
posted @ 2009-12-08 20:31 司徒正美 阅读(2988) 评论(11) 推荐(3) 编辑