- 博客(6)
- 资源 (6)
- 收藏
- 关注
原创 mysql利用INET_ATON或INET_NTOA比较ip
INET_ATON(expr) 给出一个作为字符串的网络地址的点地址表示,返回一个代表该地址数值的整数。地址可以是4或8比特地址。 mysql> SELECT INET_ATON('209.207.224.40'); -> 3520061480 产生的数字总是按照网络字节顺序。如上面的例子,数字按照 209×2563 + 207×2562 + 224×256 + ...
2014-09-24 19:06:23 1032
原创 MySql字符串截取
MySQL 字符串截取函数:left(), right(), substring(), substring_index()。还有 mid(), substr()。其中,mid(), substr() 等价于 substring() 函数,substring() 的功能非常强大和灵活。 1. 字符串截取:left(str, length) mysql> select left('sqlst
2014-09-23 12:22:53 554
原创 js中取struts2中action传来的值
js中取struts2中action传来的值 alert("${appRelease.appVersion.id}"); var value="";
2014-09-18 20:45:36 793
原创 处理Struts2的action中对返回的json在另一端接收乱码问题
private JSONObject result; private IAppService ssuAppService; public String getApps(){ logger.info("OuterInterfaceAction getApps()..start" ); result = new JSONObject(); try { Lis...
2014-09-13 18:44:30 1792
原创 JSON设置过滤属性
jsonMap.put("rows", pageableResult.getCurrentPage()); jsonMap.put("total", pageableResult.getMaxRowCount()); JsonConfig jsonConfig = new JsonConfig(); //建立配置文件 jsonConfig.setIgnoreDefaultExc
2014-09-07 16:51:01 1648
原创 EasyUI 使用DataGrid并使用分页及复选框,支持格式化数据
var appPath=""; function initdata(){ $('#dg').datagrid({ url:查询用户 pagination:true, autoRowHeight : true, checkOnSelect : false, rownumbers:true, columns:[[ {field:'
2014-09-07 10:55:08 853
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人