从数据库提取的数据在页面上显示“????”,网页上查看的源代码如下,有谁能说一下吗?
<html><head><title>我的购物车</title></head><body><h2>我的购物车</h2><hr><tableborder="1"width=...
<html> <head> <title>我的购物车</title>
</head>
<body> <h2>我的购物车</h2>
<hr> <table border="1" width="600">
<tr bgcolor="#dddddd">
<td align="center" width="80">商品名称</td>
<td align="center">商品单价</td>
<td align="center" width="100">购买数量</td>
<td align="center" width="100">金额</td>
<td align="center" width="100">编辑</td>
</tr>
<tr>
<td>????</td>
<td>20</td>
<td><input type=text value=1 onChange="updateNum('12',this.value,'20')"></td>
<td>20</td>
<td><a href='buy.jsp?op=del&id=12'>退回商品架</a></td>
</tr>
<tr>
<td>????</td>
<td>20</td>
<td><input type=text value=1 onChange="updateNum('13',this.value,'20')"></td>
<td>20</td>
<td><a href='buy.jsp?op=del&id=13'>退回商品架</a></td>
</tr>
</table> <br>
<a href="index.jsp">继续购物</a>
<a href="buy.jsp?op=clear">清空购物车</a>
</body> <script language="javascript">
function updateNum(id,num,price){
var url = "buy.jsp?op=update&id="+id+"&num="+num+"&price="+price;
window.location = url; }
</script>
</html> 展开
</head>
<body> <h2>我的购物车</h2>
<hr> <table border="1" width="600">
<tr bgcolor="#dddddd">
<td align="center" width="80">商品名称</td>
<td align="center">商品单价</td>
<td align="center" width="100">购买数量</td>
<td align="center" width="100">金额</td>
<td align="center" width="100">编辑</td>
</tr>
<tr>
<td>????</td>
<td>20</td>
<td><input type=text value=1 onChange="updateNum('12',this.value,'20')"></td>
<td>20</td>
<td><a href='buy.jsp?op=del&id=12'>退回商品架</a></td>
</tr>
<tr>
<td>????</td>
<td>20</td>
<td><input type=text value=1 onChange="updateNum('13',this.value,'20')"></td>
<td>20</td>
<td><a href='buy.jsp?op=del&id=13'>退回商品架</a></td>
</tr>
</table> <br>
<a href="index.jsp">继续购物</a>
<a href="buy.jsp?op=clear">清空购物车</a>
</body> <script language="javascript">
function updateNum(id,num,price){
var url = "buy.jsp?op=update&id="+id+"&num="+num+"&price="+price;
window.location = url; }
</script>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询