微信二維碼支付報錯

IOS系統下 微信自帶頁面 進行二維碼支付頁面跳轉的時候,參數沒法帶過去,致使頁面報錯。須要將 form屬性中的target 設置爲"_parent"。
          // 二維碼支付
                if(bank == 'WECHAT'){
                   var url = document.dynamicResourcePath+"/wechat/gotoTwoCodePc.html";
                   $('#deductForm').attr('action', url);
                    // $('#deductForm').attr('target', "_blank");
                    $('#deductForm').attr('target', "_parent");
                    $('#deductForm').submit();
                    //add by liwei 2018-11-14
                    popwin('open');
                }
相關文章
相關標籤/搜索