![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工作记录
niwarner
coding
展开
-
Java调用本地相应程序打开文件
Runtime.getRuntime().exec("rundll32 url.dll FileProtocolHandler " + filepath);Windows 系统下.原创 2013-08-31 16:57:23 · 713 阅读 · 0 评论 -
jquery-json解析(身份证查询)
使用的聚合的身份证查询API,免费为1000次/小时.返回数据选择为json,通过在action中使用 JSONTokener来截取其中的result,即查询的身份证信息:private static final String JSON = "{" + " \"phone\" : [\"12345678\", \"87654321\"]," + "原创 2013-10-05 10:59:33 · 1120 阅读 · 0 评论 -
JS控制表单提交
... function check(){ if(条件满足,提交表单){ return true; }else{ return false; }}原创 2013-10-08 10:35:28 · 486 阅读 · 0 评论 -
数据更新
update a set a.xx=(select xx from b where a.id=b.id);原创 2013-10-07 15:03:22 · 397 阅读 · 0 评论 -
eclipse 引用的jar包归类
只要打开Package Explorer窗口即可,打开方法:菜单Window->Show View->Other->Java->Package Explorer,如果Package Explorer窗口中仍不见Referenced Libraries目录,则可以点击Package Explorer窗口右上角的倒三角箭头,在弹出的菜单中选择“Show 'Referenced Libraries' N原创 2013-10-08 11:18:48 · 468 阅读 · 0 评论 -
Ant相关(2013-10-22)
Ant下载后解压出配置环境变量,cmd窗口执行ant或者ant.bat命令看有相关指示确定是否安装成功.参数:ant -find/s 去上级目录搜索生成文件,直至根路径.ant -f/file xx.xml 以xx.xml为生成文件执行.ant -q/quiet 安静模式运行.ant -v/verbose 输出更多的信息,于上一条相反.ant -l xx.log 输出值原创 2013-10-22 22:43:04 · 334 阅读 · 0 评论 -
Ext combo 在表单中提交到action的值问题
***name : 'carttype',hiddenName : 'carttype',fieldLabel : '证件类型',width : 200,xtype : 'combo',mode : 'local',store : new Ext.data.SimpleStore({fields : ['value', 'text'],data : [[1, '身份证'原创 2013-11-11 21:55:55 · 411 阅读 · 0 评论 -
字符串转换为Date类型
public class SimpleDateFormatTest { public static void main(String[] args) { String dateStr = "13年11月11日"; String formatPattern = "yy年MM月DD日"; SimpleDateFormat sdf = new SimpleDateFormat(format原创 2013-11-11 22:01:49 · 459 阅读 · 0 评论