有谁知道为什么这个函数的最后一行form.submit()在IE8中抛出“class not registered”错误?
//capture the map dimensions and submit the form to fetch a GPX file
GMap2.prototype.downloadGPX = function(input) {
var form = input.parentNode;
form.swx.value = this.getBounds().getSouthWest().x
form.swy.value = this.getBounds().getSouthWest().y
form.nex.value = this.getBounds().getNorthEast().x
form.ney.value = this.getBounds().getNorthEast().y
form.zoom.value = this.getZoom();
form.submit();
}
答案 0 :(得分:0)
这不起作用的原因是因为我设置了form.target,你不能在IE8中使用.target。