https://www.cnblogs.com/dolphin0520/p/3920373.html http://blog.csdn.net/lingzhm/article/details/44940823 Read More
posted @ 2017-12-25 15:19 昨日的世界 Views(111) Comments(0) Diggs(0) Edit
经常遇到要对某些数据进行补位的情况,有些是数据格式问题,有些是设计的问题,就抽空写了个拙劣的补位函数, package TestPac; public class DoCover { /*******参数 bit 表示固定位数 *******参数 digit 要补位的数字 ******参数TOF 表 Read More
posted @ 2017-12-23 15:52 昨日的世界 Views(532) Comments(0) Diggs(0) Edit
跨域的情形有很多种,网上有人给出了一份表格, 表格中标识为”不允许”通信的情况都属于跨域。实际网络服务中需要跨域的情况确实存在,于是开发者们提供了一种解决方案,就是使用jsonp格式进行数据交互,它不是标准的json格式,而是形如”callback(json)”的格式,这样在使用ajax跨域请求的时 Read More
posted @ 2017-12-23 15:46 昨日的世界 Views(130) Comments(0) Diggs(0) Edit
用到easyui-combogrid,数据比较少的情况,可以一页就显示完毕,然后直接下拉选择。但是对于数据量比较大的情况,一页显示全部显然不合适,好在从easyui-combogrid的数据加载方式可以知道,下拉表格继承自easyui-datagrid,属性和方法也继承自easyui-datagri Read More
posted @ 2017-12-23 15:32 昨日的世界 Views(2852) Comments(0) Diggs(0) Edit
许多必填项都涉及到数字,比如电话号码,身份证号这些要求用户在输入时只能输入数字。Easyui提供了数字框控件,允许用户只输入数字, <td> <input id="ssd" type="text" class="easyui-numberbox" data-options="precision:'2 Read More
posted @ 2017-12-23 15:14 昨日的世界 Views(8981) Comments(0) Diggs(0) Edit
在使用easyui-combogrid时,由于html解析出的格式是如下三层: <td> <input id="txcombo" class="easyui-combogrid combogrid-f combo-f" value="" style="width: 200px; height: 28 Read More
posted @ 2017-12-23 15:02 昨日的世界 Views(2145) Comments(0) Diggs(0) Edit
该文被密码保护。 Read More
posted @ 2017-12-23 14:29 昨日的世界 Views(0) Comments(0) Diggs(0) Edit
该文被密码保护。 Read More
posted @ 2017-12-23 13:56 昨日的世界 Views(1) Comments(0) Diggs(0) Edit
在实际项目中有时候会遇到一些有特殊要求的控件,比如easyui-combogrid,加载的并不是常见的json格式,这里我遇到过需要加载类似省市县这种三级数据格式。最后也是从别人的博客中学到的如何组装。 如areaJson=[ {"p":"江西省", “c":[{"ct":"南昌市"}] }, {" Read More
posted @ 2017-06-26 18:05 昨日的世界 Views(2566) Comments(0) Diggs(0) Edit
两个对象之间拷贝相同的属性,可以使用BeanUtils.copyProperties()方法, BeanUtils.copyProperties(obj1,obj2); 提示有三个包可选。 A,选择org.apache.commons......会提示Add throws declarations, Read More
posted @ 2017-06-26 17:18 昨日的世界 Views(491) Comments(0) Diggs(0) Edit