这个jsp文件怎么处理?

mandarin 2015-11-26 11:01:34
// JavaScript Document
//JS异常处理,从头到尾
try{
fullDateStr = "2015年11月26日";//实时行情最新日期
rowCount = "10";//实时行情记录行数

document.writeln("<table cellpadding=\"0\" cellspacing=\"1\" style=\"width:100%; border: 0px none; background-color: #888888;\">");
document.writeln(" <thead>");
document.writeln(" <tr class=\"pricetitlecolor\" style=\"background-color: #EFEEEE;\">");
document.writeln(" <td style=\"width: 26%; height: 18px; color: #333333;\">交货合同</td>");
document.writeln(" <td style=\"width: 48%; height: 18px; color: #333333;\">价格(元/吨)</td>");
document.writeln(" <td style=\"width: 26%; height: 18px; color: #333333;\">涨 跌</td>");
document.writeln(" </tr>");
document.writeln(" </thead>");
document.writeln(" <tbody>");


document.writeln(" <tr style=\"background-color: #FFFFFF;;\">");
document.writeln(" <td>S15121</td>");
document.writeln(" <td>5185</td>");
document.writeln(" <td style=\"color: #006600;;\">-10</td>");
document.writeln(" </tr>");

document.writeln(" <tr style=\"background-color: #EDF7F9;;\">");
document.writeln(" <td>S15122</td>");
document.writeln(" <td>5205</td>");
document.writeln(" <td style=\"color: #FF0000;;\">16</td>");
document.writeln(" </tr>");

document.writeln(" <tr style=\"background-color: #FFFFFF;;\">");
document.writeln(" <td>S15123</td>");
document.writeln(" <td>5220</td>");
document.writeln(" <td style=\"color: #FF0000;;\">27</td>");
document.writeln(" </tr>");


类似的这个的写法,能够得到他运行后的html的文本吗 ,类似的在浏览器执行后的效果 ,用java怎么实现,请高手指导下
...全文
78 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
mandarin 2015-11-26
  • 打赏
  • 举报
回复
引用 1 楼 fridayday2010 的回复:
可以。。。。。。。。
具体怎么处理啊,我对jsp不太了解
南瓜三三 2015-11-26
  • 打赏
  • 举报
回复
可以。。。。。。。。

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧