test


jQuery.extend(jQuery.expr[':'],{
 'num-children' : function(element, index, matches,set) 
 {
  var count = 0;
  for (var node = element.firstChild; node; node= node.nextSibling) 
  {
   if(node.nodeType === 1) 
   {
    count ++;
   }
  }
  return count == matches[3];
 }
});

留言

這個網誌中的熱門文章

html嵌入youtube影片當背景,並靜音

css小發現:隱藏捲軸、強迫物件換行

好用的企畫編輯軟體- Axure