zoukankan      html  css  js  c++  java
  • ie 使用window.open页面报错

    window.open(url)打开新页面是如果要通过地址栏来传参要注意

    var qt = "";
    qt += "&teachMaterialDealInfo.bookids="+selectBooks;
    qt += "&teachMaterialDealInfo.writername="+encodeURI($('#writername_v').val());
    qt += "&teachMaterialDealInfo.duties="+encodeURI($('#duties_v').val());
    qt += "&teachMaterialDealInfo.positional="+encodeURI($('#positional_v').val());
    qt += "&teachMaterialDealInfo.unitid="+encodeURI($('#workunit_v').val());
    qt += "&teachMaterialDealInfo.positiontype="+encodeURI($('#positiontype_v').val());
    qt += "&teachMaterialDealInfo.auditstate="+encodeURI($('#auditstate_v').val());
    qt += "&teachMaterialDealInfo.isreceivedpaper="+encodeURI($('#isreceivedpaper_v').val());
    qt += "&teachMaterialDealInfo.chkpositiontype="+"";
    qt += "&teachMaterialDealInfo.materid="+encodeURI($('#materid').val());
    qt += "&teachMaterial.matername="+encodeURI($("#matername").html().replace(/ /ig, ''));


    window.open("teachMaterialAction!CutToExportWordPage.action?"+qt);

    参数要用encodeURI()转换ie的地址栏中不能有中文参数值

  • 相关阅读:
    achivemq(消息队列)的使用
    java高并发当时处理的思路
    字符串的应用
    正则表达式
    文本文件的读取与写入
    继承
    冒泡排序法
    类与对象
    数据类型
    关键字和语句
  • 原文地址:https://www.cnblogs.com/niuxi/p/7240427.html
Copyright © 2011-2022 走看看