<%@ page language="java" contentType="text/html; charset=UTF-8"? ? pageEncoding="UTF-8"%><%@taglib uri="http://java.sun.com/jsp/jstl/core" ?prefix="c"%><%? ? String path = request.getContextPath();%><!-- 月收入查詢功能界面 ?2016-10-14--><div id='show'><select id="years" ?class="easyui-combobox"> ?? ? ? ?<c:forEach var="year" begin="2002" end="2016" step="1" > ?? ? ? ? ?<option value="${year}" ?>${year}</option> ?? ? ? ?</c:forEach> ?? ? ? </select> ?? ? ?<select id="months" ?class="easyui-combobox"> ?? ? ? ?<c:forEach var="month" begin="1" end="12" step="1" > ?? ? ? ? <option value="${month}">${month}</option> ?? ? ? ?</c:forEach> ?? ? ? </select> ?<a id="btn" href="javascript:search()" class="easyui-linkbutton" ?data-options="iconCls:'icon-search'">查詢</a>?<div><table id="mothTable"></table><script>$(function(){ $('#mothTable').datagrid({ ? ? ? ?url:'<%=path%>/detail/moth.htm?authorid=10000', ? ? ? ?columns:[[ ? ? ? ? ? ?{field:'BOOKNAME',title:"書籍名稱"}, ? ? ? ? ? ?{field:'TOTAL',title:'收入書豆'}, ? ? ? ? ? ?{field:'TIME',title:'月'} ? ? ? ?]] ? ? });? });?function search(){ $('#mothTable').datagrid("load",{ date:$('#show').combobox('getValue'), ? //- ==> Parameters: 10000(String), 2007(String) ?只獲取年 ?月沒有獲取 ?求教 }); } </script>
有不明白之處,請教一下,謝謝
樸實
2016-10-20 17:11:51