一、jQuery.buildFragment使用方法
1、參數
jQuery.buildFragment( args, context, scripts );2、回傳值
return { fragment: fachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cacheable: fpachement, cachement: fachement, cacheable: cacheablement ;
二、思路分析 1、處理context參數
根據傳入到context參數值的不同,確保context為文檔根節點document
2、限制可緩存條件
2.1、字串小於512位元組
2.2、字串不存在option標籤(克隆option標籤會遺失選取狀態,因此不快取)
2.3、字串不存在