我的jsp怎么调用不了js方法啊?求,急
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="entity.goods"%>
<%@page import="java.util.Map.Entry"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'shoping.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">
-->
<link type="text/css" rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="scripts/function.js"></script>
<script type="text/javascript">
function getTotal(){
var price=document.getElementsByName("monery");
alert("ss");
var num=document.getElementsByName("num");
var total=0;
for(var i=0;i<price.length;i++){
total= total+ price[i].value*num[i].value;
}
document.getElementById("count").innerHTML=total
}
function checkNum(tnumId, numId){
var tnum=document.getElementById(tnumId).value;
var num=document.getElementById(numId).value;
if(num-tnum>0){
alert("没有这么多个库存");
document.getElementById(numId).value=tnum;
}
getTotal();
}
function add(gdnumid,gdcountid){
alert("家");
var num=document.getElementById(gdnumid).value;
var kc=document.getElementById(gdcountid).value;
if( parseInt(ku)>parseInt(kc)){
var kk=parseInt(kk)+parseInt(1);
document.getElementById(gdnumid).value=kk;
}
function cut(gdnumid,gdcountid){
alert("减")
var num=document.getElementById(gdnumid).value;
var kc=document.getElementById(gdcountid).value;
if( parseInt(ku)>parseInt(kc)){
var kk=parseInt(kk)-parseInt(1);
document.getElementById(gdnumid).value=kk;
}
}
</script>
</head>
<body onload="getTotal()">
<div id="position" class="wrap">
您现在的位置:<a href="index.jsp">易买网</a> > 购物车
</div>
<div class="wrap"&g