我可以在onclick事件中调用函数吗? [英] Can I call a function in a onclick event?

查看:244
本文介绍了我可以在onclick事件中调用函数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我再来一次


是否可以在<中调用函数a> onclick活动?



提前谢谢

chel-1

hi
its me again

is it possible to calling a function in < a > onclick event?



thanks in advance
chel-1

推荐答案

你可以测试它并告诉我们它是否可能......
You could test it and tell us if it''s possible ...


测试它是否可能而不是等待是否更容易我们的答案是什么?

顺便说一句,是的,这是可能的。
Wasn''t it easier to test if it''e possible or not instead of waiting for answer from us?
btw, Yes it''s possible.



是否可以调用<中的函数a> onclick事件?
is it possible to calling a function in < a > onclick event?



您可以在类似的事件中执行任何客户端脚本。

除非您尝试执行PHP函数?


我必须同意其他人的意见......它应该只花一分钟来测试一下你自己。


顺便说一下,我改变了主题标题。请尝试使您的标题具有描述性。只需说出onclick之类的内容并不是真的很有帮助。


查看发布指南,了解什么是一个好的主题标题。


主持人

You can execute any client-side script in an event like that.
Unless you are trying to execute a PHP function?

I would have to agree with the others tho... it should only take you like a minute to test that yourself.

Btw, I changed the thread title. Please try to make your titles descriptive. Simply stating something like "onclick" isn''t really helpful.

Check out the Posting Guidelines to see what makes a good thread title.

MODERATOR


这篇关于我可以在onclick事件中调用函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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