如何在插件中调用我的函数 [英] How to invoke my function in plugin

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

问题描述

在Firebreath插件开发中,创建插件后我们必须使用下面的代码来使用插件。



In Firebreath Plugin development , after creating plugin we have to use below code to use plugin.

<object id="plugin0" type="application/x-myplugin" width="300" height="300">
    <param name="onload" value="pluginLoaded" />
</object><br />







以上代码是访问我们的插件,我认为,

现在当我立即访问插件时,函数必须被叫,我怎么能这样做



这就像我们为一个类创建一个对象,如果我们有一个构造函数它将在创建对象时自动调用,正好当我使用上面的代码访问插件时我想调用一个函数



在此先感谢...




Above code is to access our plugin , I think,
Now when I access the plugin immediately a function has to be called, how can I do that

It's like when we create an object to a class , if we have a constructor it will automatically invoked when object is created, exactly when I access the plugin by using above code I want to call a function

Thanks in advance...

推荐答案

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

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