时间起止
<div style="margin: 6px">创建时间
<input name="createdatetimeStart" class="easyui-datetimebox"
editable="false" style="width: 155px;">至
<input name="createdatetimeEnd" class="easyui-datetimebox" editable="false"
style="width: 155px;">
</div>
日历
$('#cc').calendar({
width:200,
height:200,
current:new Date()
});
<div id="cc" style="width:180px;height:180px;margin-bottom: 3px;margin-top: 8px;"></div>
div布局使用组件
<div style="border: 1px solid black;width: 300px;height: 300px;background-color: green;" />
导致页面出错的语句 没问题误判
错误1:
<%
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>
<title>My JSP 'show.jsp' starting page</title>
<base href="<%=basePath%>">
错误2:
field: "id", titl: "编号",
错误3:
field: "id", field: 'id',
错误4:(语句符号不严格)结尾加了逗号,规范的json数据,字符串规范用单引号而不是双引号,但是双引
号有些地方不报错
$(document).ready(function(){
url:'/easy/stu/showAll!findAll',loadMsg: '数据载入中,请稍等!',
height:350,
columns:[[
{
field: "id",
title: "编号",
width: 85,
align: "left",
sortable: true,
},
{
field: "name",
title: "登陆名",
width: 55,
align: "center",
},
]]
});
以上错误:修改为
$(document).ready(function(){
url:'/easy/stu/showAll!findAll',loadMsg: '数据载入中,请稍等!',
height:350,
columns:[[
{
field: 'id',
title: '编号',
width: 85,
align: 'left',
sortable: true
},
{
field: 'name',
title: '登陆名',
width: 55,
align: 'center'
}
]]
});
-------------------------------------------------------------------------
<script type="text/javascript">
$(function(){ ... });
$(document).ready(function(){ ... });
<div style="margin: 6px">创建时间
<input name="createdatetimeStart" class="easyui-datetimebox"
editable="false" style="width: 155px;">至
<input name="createdatetimeEnd" class="easyui-datetimebox" editable="false"
style="width: 155px;">
</div>
日历
$('#cc').calendar({
width:200,
height:200,
current:new Date()
});
<div id="cc" style="width:180px;height:180px;margin-bottom: 3px;margin-top: 8px;"></div>
div布局使用组件
<div style="border: 1px solid black;width: 300px;height: 300px;background-color: green;" />
导致页面出错的语句 没问题误判
错误1:
<%
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>
<title>My JSP 'show.jsp' starting page</title>
<base href="<%=basePath%>">
错误2:
field: "id", titl: "编号",
错误3:
field: "id", field: 'id',
错误4:(语句符号不严格)结尾加了逗号,规范的json数据,字符串规范用单引号而不是双引号,但是双引
号有些地方不报错
$(document).ready(function(){
url:'/easy/stu/showAll!findAll',loadMsg: '数据载入中,请稍等!',
height:350,
columns:[[
{
field: "id",
title: "编号",
width: 85,
align: "left",
sortable: true,
},
{
field: "name",
title: "登陆名",
width: 55,
align: "center",
},
]]
});
以上错误:修改为
$(document).ready(function(){
url:'/easy/stu/showAll!findAll',loadMsg: '数据载入中,请稍等!',
height:350,
columns:[[
{
field: 'id',
title: '编号',
width: 85,
align: 'left',
sortable: true
},
{
field: 'name',
title: '登陆名',
width: 55,
align: 'center'
}
]]
});
-------------------------------------------------------------------------
<script type="text/javascript">
$(function(){ ... });
$(document).ready(function(){ ... });