首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

生手写js又出错了-

2012-10-07 
新手写js又出错了- -HTML code%@ page contentTypetext/html charsetANSI languagejava%html

新手写js又出错了- -

HTML code
<%@ page contentType="text/html" charset="ANSI" language="java"  %><html><head></head><body>welcome</body></html>

在浏览器查看显示源码

<html>
<head>
</head>
<body>
welcome
</body>
</html>
在浏览器查看显示“welcome”
这个是为什么呢?


[解决办法]
你的第一段代码 要用tomcat服务器才能显示出来你的页面应该显示的东西,jsp是动态语言 html是静态语言

热点排行