代码改变世界

sql语句查询出数据重复,取唯一数据

2016-04-07 13:43 by sihao560, 2243 阅读, 0 推荐, 收藏, 编辑
摘要:select distinct mr.id,ifnull(mr.pid,0) as pid,mr.name from sys_role_res srr left join main_res mr on mr.id=srr.res_id left join sys_role sr on sr.id=s 阅读全文

bootstrap ace treeview树表

2016-04-06 17:19 by sihao560, 5639 阅读, 0 推荐, 收藏, 编辑
摘要:html部分 <div class="widget-main padding-8" style="height:400px;overflow-y: scroll;"><!-- overflow-y: scroll css样式,切割显示 --> <ul id="res_tree"></ul> </di 阅读全文

bootstrap 时间选择器 datetime

2016-03-31 20:34 by sihao560, 980 阅读, 0 推荐, 收藏, 编辑
摘要:$("'#datetimepicker").datetimepicker({ format: "yyyy-mm-dd hh:ii:ss",//设置时间格式,默认值: 'mm/dd/yyyy' weekStart : 0, //一周从哪一天开始。0(星期日)到6(星期六),默认值0 startDate 阅读全文

ajax请求后加额外的数据

2016-03-30 19:35 by sihao560, 243 阅读, 0 推荐, 收藏, 编辑
摘要:$.ajax({ cache: true, type: "POST", url:"${ctx!}/bus/trail/getTrailInfoById", data:$("#trail_save_form").serialize()+"&load_id="+load_id, async: false 阅读全文

使用ajax请求,模态框调用并更改密码

2016-03-22 11:07 by sihao560, 843 阅读, 0 推荐, 收藏, 编辑
摘要:前端页面 <a href="javascript:void(0);" onclick="changPassword()"> <i class="ace-icon fa fa-cog"></i> 修改密码 </a> <script type="text/javascript"> //打开模态框 fun 阅读全文

ajax get和post请求 后端接收并返回数据

2016-03-22 10:53 by sihao560, 1925 阅读, 0 推荐, 收藏, 编辑
摘要:get请求$(function(){ //alert("23"); var x = "#page"; var y = "${ctx!}/static/images/"; $.ajax({ cache: true, type: "get", url:"${ctx!}/power", dataType: 阅读全文