如何在扩展的javascript文件中访问方法或函数 [英] how to access method or function in extended javascript file
问题描述
这里我有一个场景,我在第一个扩展的javascript文件中有一个方法。
我在第二个扩展的javascript文件中有另一个方法。
所以我想首先扩展javascript文件将调用第二个扩展javascript文件中的方法。
例如
功能第一----->第一个javascript文件
呼叫功能第二----->第二个javascript文件
是否有可用的代码或示例...?
vinay
在调用它之前,只确保包含你想要使用的功能
here i have a scenario where i have one method in first extended javascript file.
and I have a another method in second extended javascript file.
So I want first extended javascript file will call the method which is there in second extended javascript file.
for example
function first -----> first javascript file
call function second -----> second javascript file
Is there any code or samples available...?
vinay
Hi,
only make sure that the function you want to use, are included before you call it
这篇关于如何在扩展的javascript文件中访问方法或函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!