uj5u.com熱心網友回復:
只用前端,不借助服務器端代理的話。可以用個隱藏的form 自動提交表單到一個 iframe 中,圖片就會顯示到 iframe 中。
uj5u.com熱心網友回復:
可以具體一點如何實作的嗎uj5u.com熱心網友回復:
<form method="post" action="https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=你的ACCESS_TOKEN" target="iframe1" id="form"><input type="hidden" name="path" value="https://www.baidu.com" />
<input type="hidden" name="width" value="https://bbs.csdn.net/topics/480" />
</form>
<iframe width="480" height="480" name="iframe1" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
<script type="text/javascript">
document.getElementById("form").submit();
</script>
uj5u.com熱心網友回復:
你這個會報錯40159,怎么將兩個input的傳參內容JSON.stringify呢uj5u.com熱心網友回復:
這個建議后端區弄 前端不太好處理轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/62597.html
標籤:HTML5
上一篇:用js怎么對一個具體的檔案夾里的已有sqlite資料庫進行讀取資料?
下一篇:爬蟲問題
