在javascript中加载相同脚本时如何执行功能? [英] How to execute a function when the same script is loaded in javascript?
本文介绍了在javascript中加载相同脚本时如何执行功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我一直在寻找答案已经有一段时间了,我想知道,当在javascript中加载相同的脚本时,是否可以执行一个函数?例如;
加载的脚本=执行功能1()
因此,在脚本加载时,它将自动执行功能1.
所以我每个人都有主意,请与我分享!!!!在此先感谢!!!!!!!!
hello everybody, I''ve been looking for the answer for a while and i was wondering, if i can execute a function when the same script is loaded in javascript? for a example;
Script loaded = do function 1()
so when the script loads, it will execute function 1 automatically.
so i anyone has idea''s please share with me!!!! thanks in advance!!!!!!!!
推荐答案
您可以检查此 [
Hi,
you can check this[^] forum for your answer.
hope it will help you,
Thanks
-Amit Gajjar
这篇关于在javascript中加载相同脚本时如何执行功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文