`
文章列表
     var page_num = 2;//当前页面 var max_show_page = 10;//最多显示分页页数 var max_page = 20;//总页面数 //从第几页开始显示分页信息 var start_page = (page_num - Math.ceil(max_show_page / 2)); if (start_page < 1) { start_page = 1; } //分页信息显示到第几页 var end_page = page_num + max_ ...
//显示图片 function showImage(div_id,img_src) { //IE support if (document.selection) { var myField = document.getElementById(div_id); //对象 var myValue = '<img src = "'+img_src+'"/>'; //值 myField.focus(); var sel = document.selection.crea ...

图片缩略图

/** * 缩放 * * @param source 目标图片路径 * @param targetW 宽度 * @param targetH 高度 */ public static BufferedImage resize(BufferedImage source, int targetW, int targetH) { // targetW,targetH分别表示目标长和宽 int type = source.getType(); Bu ...
1.src=‘请求路径’ 2.后台代码 public void doGetImage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html; charset=GBK"); response.setContentType("image/jpeg"); ...
function myfocus(obj) { if (typeof obj == 'string') obj = document.getElementById(obj); obj.focus(); if (obj.createTextRange) {//ie var rtextRange = obj.createTextRange(); if(obj.value == null || obj.value == '') return; rtextRange.moveStart('character', obj. ...
1.js style="text-decoration:none;COLOR: #000000;" onclick="openMailWindow()" onmouseover="this.style.textDecoration=\'underline\'" onmouseout="this.style.textDecoration=\'none\'" 2.css a:hover { text-decoration: underline; color: green }

取得文件的路径

1.ServletContext servletContext 绝对路径servletContext.getRealPath(LIB_PATH)
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; /** * 手机短息发送 * @author zhchen * */ public class PhoneMessageSendUtil { private static HttpURLConnection httpURLConnection = null; ...
第一步打开Eclipse工具,创建一个java project,然后把要使用*.wsdl文件放到该工程下,如下图: 第二步,创建一个“Web Service Client”,如下图: 第三步,点击“Next”如下图: 第四步,点击“Browse”,如下图: 第五步,点击“Browse”,选择*.wsdl文件,如下图: 第六步,点击“OK”,如下图: 第七步,点击“OK”,如下图: 第八步,如上图调整到“Install Client”,点击“Next”,如下图: 第九步,点击“Next”,如下图: 第十步,点击“Finish ...
//获得子表数据 function getChildGridData(grid){ if(!grid.isDirty()){ return null; } var records = grid.grid.getStore().getQueueRecords(); var result = {}; if(records.create){ result.create = records.create; } if(records.update){ result.update = records.update; } if(records.destro ...

查询结果拼接

pro_title_name=‘xxxx’ select concat('参加',pro_title_name,'考试') from t_professional_title 查询结果: 参加xxxx考试

重置按钮

this.getForm().reset(); if(this.updateFlag) { var promotionExamPanel = Ext.getCmp('promotionExamPanel'); var sm = promotionExamPanel.grid.getSelectionModel(),record = sm.getSelected(); promotionTypeCheckboxGroup.reset(); this.form.loadRecord(record); var vals = record.data.pro ...
var grid = this.grid, store = grid.getStore(), Record = store.reader.recordType; var proTitleSn=Ext.getCmp('previous_title_sn').getValue(); var r = new Record({pro_title_sn:proTitleSn,education_label:'学历',work_experience_label:'职称年限',work_time_label:'工作年限'}); store.insert(0, r); grid.g ...

Ext 初始化的过程

1.Ext的入口函数 initComponent和constructor 只有直接或间接继承自 Ext.Component的类才会在constructor里调用initComponent方法
1.页面 UpForm = Ext.extend(Ext.form.FormPanel, { id: 'up_form_id', constructor: function(config) { var newConfig = {}; Ext.apply(newConfig, config || {}, { idProperty: 'up_form', labelWidth: 80, border: false, frame: true, autoScroll: true, fileUpload : true, but ...
Global site tag (gtag.js) - Google Analytics