[Debug]IOS微信浏览器不支持form表单的target=_blank
2024-08-31 19:15:03
测试代码如下
<?php
echo '<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">';
if(!empty($_POST)){
echo "<pre>";
print_r($_POST);
exit;
}
if(!empty($_GET)){
echo "<pre>";
print_r($_GET);
exit;
}
?> <!DOCTYPE html>
<html>
<head>
<title>DEMO</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
</head>
<body>
<a href="http://mall.aili88.cn/demo.php?id=54" target="_blank">带target=_blank的超链接</a>
<h3>带target=_blank的表单</h3>
<form action="http://mall.aili88.cn/demo.php" method="post" target="_blank">
用户名:<input type="text" name="uname"/><br/>
<button type="submit">提交</button>
</form>
<h3>带target=_self的表单</h3>
<form action="http://mall.aili88.cn/demo.php" method="post" target="_self">
用户名:<input type="text" name="uname"/><br/>
<button type="submit">提交</button>
</form>
<h3>带target=_parent的表单</h3>
<form action="http://mall.aili88.cn/demo.php" method="post" target="_parent">
用户名:<input type="text" name="uname"/><br/>
<button type="submit">提交</button>
</form>
<h3>带target=_top的表单</h3>
<form action="http://mall.aili88.cn/demo.php" method="post" target="_top">
用户名:<input type="text" name="uname"/><br/>
<button type="submit">提交</button>
</form>
<h3>不带target的表单</h3>
<form action="http://mall.aili88.cn/demo.php" method="post">
用户名:<input type="text" name="uname"/><br/>
<button type="submit">提交</button>
</form>
</body>
</html>
"带target=_blank的表单"提交无效
前提条件:
1. IOS
2. 微信浏览器(6.5.8,6.5.3版本的微信浏览器就没有这个问题)
微信web开发工具(v0.7.0)满足上述2个条件,测试结果如下
最新文章
- java基础面试题
- SQL Server 常用日期查询语句
- 【练习】数据移动---导入(IMPDP)
- js中三个对数组操作的函数 indexOf()方法 filter筛选 forEach遍历 map遍历
- 使用 Intel HAXM 为 Android 模拟器加速,媲美真机
- pc加入域认证细节
- sql server单表导入、导出
- hdu2066一个人的旅行
- Cookie操作类、压缩、序列化
- python-css基础知识
- 30. pt-upgrade
- tkinter模块常用参数python
- Java多线程系列——线程池原理之 ThreadPoolExecutor
- elastic job简单用法
- MySQL--DROP TABLE与MySQL版本
- poj 2125 Destroying The Graph (最小点权覆盖)
- python网络编程--线程的方法,线程池
- 【agc006C】Rabbit Exercise
- shell练习题
- 开始整理iOS职位面试问题及答案