2017 年文章归档
共 7 篇文章
mysql 别名 进行 where 条件查询。
select id, name ,sum(count) csum from mytable where name='张三' HAVING (csum>100) 注意 HAVING 前面 不需要加and
2017-05-22 18:35 · mysql
java 保存页面上传 js 图片
现在页面上有 <img src="data:image/png;base64,..."> 我想把它赋值到一个文件域上然后提交到服务器 <input type="file"> 如果前台传的是base64编码,那么后台只能获取到编码的字符串。 格式是 "data:image/.+;base64,XXXXXXXXXXXXXXXXXXXXX" 后台转化 BASE64Decoder decoder = new sun.misc.BASE64Decoder(); String image64 = jzimage.substring(jzimage.indexOf(",")+1); byte[] byte…
2017-05-10 18:03 · java
java 批量推送 ios
此程序需要Javapns 2.2版本 import java.util.ArrayList; import java.util.List; import javapns.Push; import javapns.devices.Device; import javapns.devices.implementations.basic.BasicDevice; import javapns.notification.AppleNotificationServerBasicImpl; import javapns.notification.PushNotificationManager; impo…
2017-05-08 14:47 · java
jqGrid单选一行实现
以下三个属性缺一不可: [html] view plain copy multiselect: true, multiboxonly:true, beforeSelectRow: beforeSelectRow,//js方法 [html] view plain copy function beforeSelectRow() { $("#jqgridId").jqGrid('resetSelection'); return(true); } 这样就可以完成只选择一行记录的操作了。
2017-03-07 17:58 · Jquery
GitHub使用教程for Eclipse
1.下载egit插件 打开Eclipse,git需要eclipse授权,通过网页是无法下载egit的安装包的。在菜单栏依次打开eclipse→help→install new software→add,Name栏中输入egit,location栏中输入 http://download.eclipse.org/egit/updates/ ,点击ok进行下载。下载完成后会提示重启eclipse;如果已经有了就不需要了。 2、在Eclipse中生public key, 并添加到GitHub Repository中。 在菜单栏依次打开window → preference → general → n…
2017-02-28 14:16 · git
Eclipse安装Git插件以及关联导入Github项目
一、Eclipse配置git 1.查看自己eclipse的版本 打开eclipse 导航: help->AboutEclipse 如图: 或者找到eclipse的解压文件,打开.eclipseproduct就能看到了 2.检查Eclipse中是否已安装Git插件 菜单栏Help -> AboutEclipse,查看是否有Git插件的图标。 现在的Eclipse下载后一般都提供Git插件了,若是没有Git插件,可以再eclipse 的market里面搜索egit插件安装,如果低版本的eclipse安装高版本的egit插件会报错,建议要么安装低版本的,要么去eclipse官网下载一个最新的ecl…
2017-02-28 13:48 · git · Git
在google地图上拖拽Marker事件
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="http://maps.google.c…
2017-02-03 16:07 · goole地图