<p>
<?php
if(isset($_POST["key"])){
$key = $_POST['key'];
if(!empty($key)){
echo $key;
}else{
echo"<script>alert('key不能为空')</script>";
}
}
?>
</p>
<script>
var aBtn = document.getElementsByTagName("button")[0]
var aP = document.getElementsByTagName("p")[0]
aBtn.onclick = function(){
aP.innerHTML = "<span class='glyphicon glyphicon-cd'>正在准备资源,请稍等....</span>"
}
</script>
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询