在网页上导入Javascript [英] Javascript import on webpage

查看:95
本文介绍了在网页上导入Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨;

我有一个网页,我在Microsoft exel(http://www.teknofan.com/teknocon1.php)上用电子表格转换程序创建了该网页,我试图在此网页上导入一个javascript,但是当我在该网页上导入javascript时,不管用. Javascript代码无需导入即可工作.

感谢您的帮助
最好的问候
马可

Javascript代码:

[已删除大型代码转储]

解决方案

您是否在Chrome浏览器中查看过错是什么?如果您在Chrome中进行调试,则可能可以找出问题所在. 不工作"不是很有帮助,巨大的代码转储也不是.如果您在文件中添加了很多js,我会把它放在它自己的.js文件中,然后从那里导入它,即使它不能解决问题,也可以保持整洁.


hi ;

i have a webpage , i create it with spreadsheetconverter on microsoft exel ( http://www.teknofan.com/teknocon1.php ) , i am trying to import a javascript on this page , but when i import javascript on this webpage , it is not working. Javascript code working without import.

Thanks for helps
Best Regards
Marco

Javascript code :

[Massive code dump removed]

解决方案

Have you looked in Chrome to see what the error is ? If you debug it in Chrome, you can probably work out what is wrong. ''Not working'' is not very helpful, nor is a huge code dump. If you added a ton of js to your file, I''d put it in it''s own .js file and import it from there, that keeps things clean, even if it doesn''t resolve the issue.


这篇关于在网页上导入Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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