<%@ 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>
添加回答
举报
0/150
提交
取消