2014-02-17 63 views

回答

3

jsFiddle Demo

你可以使用HTML元素

var CustomElement = function(){}; 
CustomElement.prototype = HTMLElement.prototype; 

的原型,现在你可以使用关键字new

var myElement = new CustomElement(); 
//myElement will now have access to the HTMLElement prototype 
构建它们