[Debug]IOS微信浏览器不支持form表单的target=_blank
生活随笔
收集整理的這篇文章主要介紹了
[Debug]IOS微信浏览器不支持form表单的target=_blank
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
測試代碼如下
1 <?php 2 echo '<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">'; 3 if(!empty($_POST)){ 4 echo "<pre>"; 5 print_r($_POST); 6 exit; 7 } 8 if(!empty($_GET)){ 9 echo "<pre>"; 10 print_r($_GET); 11 exit; 12 } 13 ?> 14 15 <!DOCTYPE html> 16 <html> 17 <head> 18 <title>DEMO</title> 19 <meta charset="UTF-8" /> 20 <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> 21 </head> 22 <body> 23 <a href="http://mall.aili88.cn/demo.php?id=54" target="_blank">帶target=_blank的超鏈接</a> 24 <h3>帶target=_blank的表單</h3> 25 <form action="http://mall.aili88.cn/demo.php" method="post" target="_blank"> 26 用戶名:<input type="text" name="uname"/><br/> 27 <button type="submit">提交</button> 28 </form> 29 <h3>帶target=_self的表單</h3> 30 <form action="http://mall.aili88.cn/demo.php" method="post" target="_self"> 31 用戶名:<input type="text" name="uname"/><br/> 32 <button type="submit">提交</button> 33 </form> 34 <h3>帶target=_parent的表單</h3> 35 <form action="http://mall.aili88.cn/demo.php" method="post" target="_parent"> 36 用戶名:<input type="text" name="uname"/><br/> 37 <button type="submit">提交</button> 38 </form> 39 <h3>帶target=_top的表單</h3> 40 <form action="http://mall.aili88.cn/demo.php" method="post" target="_top"> 41 用戶名:<input type="text" name="uname"/><br/> 42 <button type="submit">提交</button> 43 </form> 44 <h3>不帶target的表單</h3> 45 <form action="http://mall.aili88.cn/demo.php" method="post"> 46 用戶名:<input type="text" name="uname"/><br/> 47 <button type="submit">提交</button> 48 </form> 49 </body> 50 </html>?
"帶target=_blank的表單"提交無效
前提條件:
1. IOS
2. 微信瀏覽器(6.5.8,6.5.3版本的微信瀏覽器就沒有這個問題)
?
微信web開發(fā)工具(v0.7.0)滿足上述2個條件,測試結(jié)果如下
?
轉(zhuǎn)載于:https://www.cnblogs.com/lhat/p/6925076.html
總結(jié)
以上是生活随笔為你收集整理的[Debug]IOS微信浏览器不支持form表单的target=_blank的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mysql 常用函数汇总
- 下一篇: 综合示例:自动生成一组新闻