摘要: 一、jQuery.buildFragment使用方法1、参数jQuery.buildFragment( args, context, scripts );2、返回值return { fragment: fragment, cacheable: cacheable };二、思路分析1、处理context参数根据传入到context参数值的不同,确保context为文档根节点document 2、限制可缓存条件2.1、字符串小于512字节2.2、字符串不存在option标签(克隆option标签会丢失选中状态,因此不缓存)2.3、字符串不存在<object>,<embed> 阅读全文
posted @ 2013-01-07 13:37 杨君华 阅读(2481) 评论(0) 推荐(0) 编辑