admin管理员组文章数量:1130349
错误提示:在eclipse控制台是没有提示的,也不报错,打开火狐浏览器调试,在控制台的提示信息:
SyntaxError: identifier starts immediatelyafter numeric literal
错误发生的场景是这样的:
由数据库取出的数据在Servlet中拼接,最后Out到前台页面,代码:
PrintWriter out = response.getWriter();
StringBuffer sb = new StringBuffer();
sb.append("<input type='hidden' id='count' value='"+count+"'/>");
sb.append("<table id='mytable' class='table table-hover text-center'>"
+ "<tr>"
+ "<th>登录名</th>"
+ "<th>工号</th>"
+ "<th>姓名</th>"
+ "<th>邮箱</th>"
+ "<th>电话</th>"
+ "<th>手机</th>"
+ "<th>操作</th>"
+ "</tr>");
for(User pojo : userlist){
sb.append("<tr>" +
"<td>"+pojo.getLoginName()+"</td>" +
"<td>"+pojo.getNo()+"</td>" +
"<td>"+pojo.getName()+"</td&g错误提示:在eclipse控制台是没有提示的,也不报错,打开火狐浏览器调试,在控制台的提示信息:
SyntaxError: identifier starts immediatelyafter numeric literal
错误发生的场景是这样的:
由数据库取出的数据在Servlet中拼接,最后Out到前台页面,代码:
PrintWriter out = response.getWriter();
StringBuffer sb = new StringBuffer();
sb.append("<input type='hidden' id='count' value='"+count+"'/>");
sb.append("<table id='mytable' class='table table-hover text-center'>"
+ "<tr>"
+ "<th>登录名</th>"
+ "<th>工号</th>"
+ "<th>姓名</th>"
+ "<th>邮箱</th>"
+ "<th>电话</th>"
+ "<th>手机</th>"
+ "<th>操作</th>"
+ "</tr>");
for(User pojo : userlist){
sb.append("<tr>" +
"<td>"+pojo.getLoginName()+"</td>" +
"<td>"+pojo.getNo()+"</td>" +
"<td>"+pojo.getName()+"</td&g本文标签: 错误SyntaxErroridentifierliteralnumeric
版权声明:本文标题:错误记录(10)SyntaxError: identifier starts immediately after numeric literal 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754577210a2703711.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论