调用阿里支付接口

今天写商城交易, 调用阿里支付功能。

if(res.code === 0){
const div = document.createElement("div");
          div.innerHTML = res.data;
          document.body.appendChild(div);
          document.forms[0].setAttribute("target", "_blank"); // 新开窗口跳转
          document.forms[0].submit();
}
本地跳转

if(res.code === 0)
{
 this.qianHtml = res.data
}
    <div>
       <iframe
      :srcdoc="qianHtml"
      frameborder="no"
      border="0"
      marginwidth="0"
      marginheight="0"
      scrolling="no"
      width="300"
      height="300"
      style="overflow:hidden;"
    ></iframe>
    </div>
原文地址:https://www.cnblogs.com/0520euv/p/12960258.html