json

时间起止

<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(){ ... });
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值