2017年12月5日

循环遍历克隆元素

摘要: //给处罚对象下面加对象function addObeject(){ var inputs = $("#companys input[type='checkbox']:checked").parent().length; alert("选择项:"+inputs); for(var i = 0 ;i 阅读全文

posted @ 2017-12-05 16:15 幻雪奇缘 阅读(125) 评论(0) 推荐(0) 编辑

2017年12月1日

object转json

摘要: var data = new Object(row); var items = JSON.stringify(data); 阅读全文

posted @ 2017-12-01 20:13 幻雪奇缘 阅读(173) 评论(0) 推荐(0) 编辑

时间戳的转换

摘要: //时间戳的转换function add0(m){return m<10?'0'+m:m }; function getDate(times) { var time = new Date(times); var y = time.getFullYear(); var m = time.getMont 阅读全文

posted @ 2017-12-01 19:51 幻雪奇缘 阅读(135) 评论(0) 推荐(0) 编辑

2017年11月30日

easyui表格里的时间戳转换成日期格式

摘要: 1.第一步 写以下方法来格式化日期 Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1, // month "d+": this.getDate(), // day "h+": this.ge 阅读全文

posted @ 2017-11-30 19:26 幻雪奇缘 阅读(3742) 评论(0) 推荐(0) 编辑

2017年11月21日

easyui datagrid数据可编辑

摘要: function onClickCell(index, field){ if (editIndex != index){ if (endEditing()) { $("#saPayTable").datagrid("selectRow", index).datagrid('beginEdit', i 阅读全文

posted @ 2017-11-21 19:38 幻雪奇缘 阅读(220) 评论(0) 推荐(0) 编辑

js报错总结:

摘要: 错误状态码:Uncaught TypeError: Cannot read property 'options' of undefined at _6e1 (eval at globalEval (jquery-2.0.3.min.js:1), <anonymous>:10115:14) at HT 阅读全文

posted @ 2017-11-21 11:03 幻雪奇缘 阅读(2403) 评论(0) 推荐(0) 编辑

2017年11月16日

easyui弹窗创出父级窗口被浏览器窗口遮挡无法再移动

摘要: 思路如下: 使用panel的onOpen事件,取得diglog的原始left和top 当用户在拖动dialog过程中,使用panel的onMove事件取得dialog所在父页面body的width和height, 通过计算,当用户将diglog拖动出body时,使用panel的move函数将dial 阅读全文

posted @ 2017-11-16 15:59 幻雪奇缘 阅读(340) 评论(0) 推荐(0) 编辑

如何解决ajax 返回的json数据为[object Object]的问题

摘要: //1、加载劳务公司function getLaborCompany(){ alert("获取劳务公司数据"); $.ajax({ url:"proemp/cxlw", type:"post", dataType:"json", async:false, data:{ "projectId":pro 阅读全文

posted @ 2017-11-16 09:51 幻雪奇缘 阅读(9727) 评论(0) 推荐(0) 编辑

2017年11月8日

jsp获取URL带的参数

摘要: 注册第一个页面的跳转 window.location.href ="registerNext.jsp?loginname=" + phone + "&password=" + password; 注册下一步页面js: phone = getQueryParam("loginname"); passw 阅读全文

posted @ 2017-11-08 10:09 幻雪奇缘 阅读(1334) 评论(0) 推荐(0) 编辑

2017年11月6日

密码正则验证

摘要: /**密码、验证码非空输入的判断*/function checkCode() { password = $.trim($("#password").val()); rpw = $.trim($("#rpw").val()); var reg = /^(?![0-9]+$)(?![a-zA-Z]+$) 阅读全文

posted @ 2017-11-06 14:13 幻雪奇缘 阅读(664) 评论(0) 推荐(0) 编辑

导航