如何在另一个JavaScript函数中调用JavaScript函数 [英] How to call javascript function within another javascript function

查看:76
本文介绍了如何在另一个JavaScript函数中调用JavaScript函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个疑问.我们可以在另一个javascript函数中调用javascript函数吗?如果有人知道这个请帮助我.

Hi,

I have one doubt. Can we call javascript function within another javascript function. If anybody know this plz help me.

推荐答案

是的.我们总是可以从另一个函数中调用一个函数.有关非常简单的示例,请参见 http://www.java2s.com/Tutorial/JavaScript/0140__Function/Callfunctioninsideafunction. htm .
Yes absolutely. We can always call a function from another function. For a very simple example see http://www.java2s.com/Tutorial/JavaScript/0140__Function/Callfunctioninsideafunction.htm.


是.

(以上一行是我的回答中唯一的一行,但该网站报告内容太短.".
我借此机会提出一个问题:想象一秒钟,这是不允许的.您可以考虑使用这种语言进行编程吗? :-))

—SA
Yes.

(The above line was the only one in my answer, but the site reported back "The content is too short.".
I''s using this opportunity to ask a question: Imagine for a second it was not allowed. Could you consider programming in this language possible?! :-))

—SA


这篇关于如何在另一个JavaScript函数中调用JavaScript函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆