Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 314 Bytes

jQuery中那些有趣的代码.md

File metadata and controls

17 lines (14 loc) · 314 Bytes
title date
jQuery中那些有趣的代码
2017/02/21 14:47:10

0、动态执行JS代码

function DOMEval(code, doc) {
		doc = doc || document;
		var script = doc.createElement("script");
		script.text = code;
		doc.head.appendChild(script).parentNode.removeChild(script);
}

1、