问题包括使用Java Web服务器的.js [英] problem including .js using Java web server

查看:69
本文介绍了问题包括使用Java Web服务器的.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在写我自己的网络服务器,它接受查询并回复页面;

似乎没问题。 FF没有控制台错误。

问题是我试图在我的文件html中包含一个文件javas.js:FF得到奇怪的错误:

hello,
I''m writing my own web server that take a query and respond with the page;
It seems OK. FF nothing console errors.
Problem is when I tried to include in my file html a file "javas.js": FF gets strange error as:

展开 < span class =codeDivider> | 选择 | Wrap | Line数字

推荐答案

您是否在JavaScript文件中有脚本标签?
Have you got script tags within the JavaScript file?


抱歉,我不是知道你的意思; js文件里面的脚本标签?喜欢< script> < /脚本取代;如果你的意思是这个,不,我不是它,只有javascript代码。为什么?

但问题是,只要我有线,服务器就不能正常显示页面。包括包含该文件(即使文件为空它也不起作用)
sorry, I don''t know what you mean; script tags inside js file? like as <script> </script>; if you mean this, no i haven''t it, only javascript code. Why?
But the problem is that the server don''t display properly th page whenever I have the "line" that include include that file (it doesn''t work even if the file is empty)


是的,这就是我的意思。这可能是导致此错误的原因。

当您在第1行第5列出现错误时,JS文件的内容是什么?
Yes, that''s what I meant. That could possibly have been the cause of this error.

When you have the error on row 1, column 5, what are the contents of the JS file?


这篇关于问题包括使用Java Web服务器的.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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