javascript函数调用 [英] javascript function call
本文介绍了javascript函数调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从onblur事件中运行一个函数并执行两次调用
how to function one and function two call from onblur event
推荐答案
<input type="text" onblur="foo(); foo2();" />
<script>
function foo()
{
alert("Hi Sanjay!");
}
function foo2()
{
alert("You can call a second function on the event but they will not execute simultaneously, but rather consequently. Good luck :)");
}
</script>
这篇关于javascript函数调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文