摘要: //easyUI filebox 获取文件对象 $("#id").filebox("files")[0]; //js 获取文件对象 document.getElementById("file").files[0]; 阅读全文
posted @ 2019-12-05 09:53 杏杏子 阅读(2596) 评论(0) 推荐(0) 编辑
摘要: $("#id").combobox("textbox").bind("focus",function() { $("#id").combobox("showPanel"); // 获取焦点后需要执行...... }) 阅读全文
posted @ 2019-12-04 17:16 杏杏子 阅读(704) 评论(0) 推荐(0) 编辑
摘要: $("#mainGrid").treegrid({ fit: true, toolbar: "#toolbar", fitColumns: false, width: $(window).width() - 22, height: $(window).height() - 110, rownumbe 阅读全文
posted @ 2019-12-04 16:31 杏杏子 阅读(3957) 评论(0) 推荐(0) 编辑
摘要: $("#id").textbox("textbox").bind("keypress", function(e) { if (e.keyCode == 13) { // 回车事件 } }); 阅读全文
posted @ 2019-12-04 16:22 杏杏子 阅读(1336) 评论(2) 推荐(0) 编辑
摘要: { field: "index", title: "序号", halign: "center", align: "center", width: 80, formatter: function(value, row, index) { var options = $("#mainGrid").dat 阅读全文
posted @ 2019-12-04 16:09 杏杏子 阅读(1614) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2019-10-18 11:14 杏杏子 阅读(7618) 评论(1) 推荐(0) 编辑
摘要: 需求: 外层最大盒子宽高设置100%后,全屏设置背景颜色,背景颜色无效 解决方案: 样式文件加一个 page{height: 100%;} 阅读全文
posted @ 2019-09-25 17:43 杏杏子 阅读(3388) 评论(1) 推荐(1) 编辑
摘要: 所有字符串方法都会返回新字符串。它们不会修改原始字符串。正式地说:字符串是不可变的:字符串不能更改,只能替换。 一,查找字符串中的字符串 indexOf() 方法返回字符串中指定文本首次出现的索引(位置): 实例 var str = "The full name of China is the Pe 阅读全文
posted @ 2019-09-25 17:36 杏杏子 阅读(1812) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-25 17:33 杏杏子 阅读(1531) 评论(0) 推荐(0) 编辑
摘要: 需求:修改弹框中的 取消/确定按钮顺序,及头部和底部背景颜色; 原ui效果图 需求ui效果图 方法:对取消及确定按钮自定义类名,样式重写 阅读全文
posted @ 2019-02-27 17:42 杏杏子 阅读(6221) 评论(0) 推荐(0) 编辑