日期:2014-05-17  浏览次数:20913 次

jsp中的js代码放在head中不显示
<script type="text/javascript">
function nextPage(pageNum) {
document.getElementById("cpn").value = pageNum;
document.getElementById("type").value = "";
document.getElementById("ediForm").submit();
}
function previousPage(pageNum) {
document.getElementById("cpn").value = pageNum;
document.getElementById("type").value = "";
document.getElementById("ediForm").submit();
}
function firstPage() {
document.getElementById("cpn").value = "1";
document.getElementById("type").value = "";
document.getElementById("ediForm").submit();
}
function endPage(pageNum) {
document.getElementById("cpn").value = pageNum;
document.getElementById("type").value = "";
document.getElementById("ediForm").submit();
}


 function go()
{
if(validateNum($("#cpn").val()))
{
alert("页码格式不正确");
document.getElementById("cpn").value = "${page.currentPageNum}";
return;
}
var sumNum = ${page.pageNum};
var cNum = document.getElementById("cpn").value;
if(cNum>sumNum){
alert("跳转页数不能大于总页数");
return;
}
document.getElementById("ediForm").submit();
}

     var index ={ind:""};
            var selected={data:""};
  function selectedPayMethod(obj){
                  index.ind=obj.selectedIndex;
                  ediForm.pay_type.value=obj.options[obj.selectedIndex].value;
                  var selectedDate=ediForm.pay_type.value;
           
                // alert(selectedDate);
                  selected.data=selectedDate;
                    }
  function checkForm() { 
   
           confirm("您已经进入函数,继续执行?");
      showValue();
       var cpn = document.getElementById("cpn");
       if(cpn != null){