外部JS调用问题? [英] External JS Call Problem??
本文介绍了外部JS调用问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到从外部链接的JS文件调用函数的问题。该文件在页面标题中链接如下:
展开 | 选择 | Wrap | 行号
解决方案
尝试
展开 | 选择 | Wrap |行号
这不起作用,错误控制台说:
myfunction未定义
但它在JS文件中!?
< blockquote>你检查写作(JS是区分大小写的,所以myfunction()和myFunction()是不同的)?
I''m having an issue with calling a function from a external linked JS file. The file is linked like so in the header of the page:
Expand|Select|Wrap|Line Numbers解决方案try
Expand|Select|Wrap|Line Numbers
That didn''t work, the error console is saying:
myfunction is not definedBut it is in the JS file!?
did you check writing (JS is case sensitive, so myfunction() and myFunction() are different)?
这篇关于外部JS调用问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆