在当前页面显示查询结果 - 使用 iframe 嵌入查询结果
在form标签中添加一个iframe标签,并设置name属性为“result”,然后在form标签中添加target属性,并将其值设置为“result”,如下:
<form action="https://api.phym.cloud/free/hlx/ksqz1.1/api.php" method="get" target="result"><label for="id">ID:</label><input type="text" id="id" name="id" placeholder="在此处填写ID"><input type="submit" value="查询"></form><iframe name="result">
这样,当用户提交查询表单后,查询结果将会在页面上显示出来。
原文地址: https://www.cveoy.top/t/topic/mj01 著作权归作者所有。请勿转载和采集!