摘要:
/* Copyright Notice ===================================================* * This file contains proprietary information of Trust-Mart Inc which is * owned by Trust-mart, Inc. * Copying or reproduction without prior written approval is prohibited. * Copyright (c) 2004 ================================== 阅读全文
摘要:
1 重要按钮配置项 handler: renderTo: 2 3 取得控件及其值 4 var memo = form.findById('memo');//取得输入控件 5 alert(memo.getValue());//取得控件值 6 7 NumberField控件 8 整数,小数,数字限制,值范围限制 9 10 new Ext.form.NumberField({ 11 fieldLabel:'整数', 12 allowDecimals : false,//不允许输入小数... 阅读全文
摘要:
PrintWriter out = null; out = response.getWriter(); try{ URL getUrl = new URL("http://www.kuaidi100.com/applyurl?key="+KEY+"&com="+com+"&nu="+nu); //System.out.println("getUrl:"+getUrl); // 根据拼凑的URL,打开连接,URL.openConnecti... 阅读全文
摘要:
public static void targetZoomOut(String sourcePath) { //将目标图片缩小成256*256并保存 File file1 = new File(sourcePath); //用file1取得图片名字 String name = file1.getName(); try { BufferedImage input = ImageIO.read(file1); BufferedImage inputbig = new BufferedImage(256, 256... 阅读全文
摘要:
Ext.form.Action.Submit的配置选项success、failure是根据返回json中success属性判断的,如果success为true,则success,false则failure,如果无json中无success属性,failure,故要提示操作是否成功,必须要返回success属性。Ext.Ajax.request的配置选项success、failure是根据response的status属性,即状态码决定的,200则为success,404或500等则为failure。 阅读全文