为什么JavaScript不起作用呢?求指点……
在一个jsp也没中有如下代码,
<head>
<base href="<%=basePath%>">
<title>My JSP 'showbookinfo.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
<!--
funtion addGoods(goodsid){
window.alert("goodsid");
}
-->
</script>
</head>
……中间部分省略
<td height="81" colspan="2"><input type="button" name="buy" onclick="addGoods(<%=gb.getGoodsid() %>)" value="购买"></td>
我调试的时候,为什么点击购买之后,也没没反应呢?请指点 谢谢哈