php失去焦点怎么办

2020-08-12 17:06:34

php失去焦点的解决办法:1、通过“onblur = "functionName()";”方法;2、定义一个方法“function functionName(){}”,并去相关PHP页面调用相关方法即可。

推荐:《PHP视频教程》

php 失去焦点怎么执行php函数?

1、绑定事件:onblur = "functionName()"; //这里是失焦事件绑定的方法,在JS里写functionName()

2、定义方法:

<script>function functionName(){$.post("url....",{  //这里去相关PHP页面调用相关方法data:data,other:other},function(){});}</script>
相关文章 大家在看