Skip to content
文档章节

实现Object.create

js
function zCreate(obj) {
	function fn() {}

	fn.prototype = obj;

	return new fn();
}