报错页面:
解决IE浏览器报错,对象不支持“remove”属性或方法_ide
报错代码:
解决IE浏览器报错,对象不支持“remove”属性或方法_js_02
解决问题后成功提交:

解决IE浏览器报错,对象不支持“remove”属性或方法_数据_03

解决代码:

	function doPostData() {
      var form = document.createElement("form");
      form.style.display = "none";
      form.action = 'http://localhost:8580/test/doPostData';
      form.method = "post";
      document.body.appendChild(form);

      form.submit();
      if (isIE() || isIE11()) {
        form.removeNode(true);
      } else {
        form.remove();
      }

      console.log('数据提交成功');
    }

    /**
     * 判断是否是IE
     */
    function isIE() {
      if (!!window.ActiveXobject || "ActiveXObject" in window) {
        return true;
      } else {
        return false;
      }
    }
    /**
     * 判断是否是IE11
     */
    function isIE11(){
      if((/Trident\/7\./).test(navigator.userAgent)) {
        return true;
      } else {
        return false;
      }
    }