var pattern = document.createElementNS("http://www.w3.org/2000/svg", "pattern");
我试过了
if (!('createElementNS' in HTMLDocument.prototype)) {
HTMLDocument.prototype.createElementNS = function(ns, name) {
if (ns) throw "sorry, this browser does not support namespaces";
return HTMLDocument.prototype.createElement.call(this, name);
};
}
但这不起作用。