- 博客(13)
- 收藏
- 关注
原创 Flex AdvancedDataGrid 取得选中的值
private function itemListClickHander(e:ListEvent):void { var selectstr:String=dp[(e.currentTarget as AdvancedDataGrid).selectedIndex].col1; Alert.show(selectstr); } dp为绑定数据源的名称 col1为dataField的名称 itemDoubleClick="itemListClickHander(event)
2020-05-20 11:50:45
117
原创 Flex 组件调用父容器里的方法
this.parentDocument.parentDocument.onmyclick(id);onmyclick为父容器的方法 id为传递的参数
2020-05-09 16:44:36
207
原创 request.getScheme() request.getServerName() request.getServerPort() request.getContextPath()
equest.getSchema()可以返回当前页面使用的协议,http 或是 https;request.getServerName()可以返回当前页面所在的服务器的名字;request.getServerPort()可以返回当前页面所在的服务器使用的端口,就是80;request.getContextPath()可以返回当前页面所在的应用的名字;String path = reques...
2019-11-29 14:21:40
431
原创 tomcat7不支持version=3.1的修改方法
在所在项目文件.setting下org.eclipse.wst.common.project.facet.core.prefs.xml<?xml version="1.0" encoding="UTF-8"?><faceted-project> <fixed facet="jst.web"/> <fixed facet="wst.jsdt.w...
2019-11-25 15:34:16
173
原创 javascript 判断是否为空
//验证非空,是空返回truefunction isEmpty(v) { switch (typeof v) { case 'undefined': return true; case 'string': if (v.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').le...
2019-11-07 15:27:53
196
原创 开启 xp_cmdshell 的SQL 语句
USE masterGORECONFIGUREGOEXEC sp_configure ‘show advanced options’,1GORECONFIGUREGOEXEC sp_configure ‘xp_cmdshell’,1GORECONFIGUREGOEXEC sp_configure ‘show advanced options’,‘1’GORECONFIG...
2019-11-06 13:06:36
200
原创 java 将json数组变成字符串
int i;JSONObject j1 = new JSONObject();JSONObject[] jarray=new JSONObject[citylist.size()];JSONArray jSONArray = new JSONArray();for(i=0;i<citylist.size();i++){ jarray[i]=new JSONObject(); j...
2019-11-05 09:50:05
720
原创 java servlet 解决中文乱码问题
response.setContentType(“text/html;charset=utf-8”);
2019-10-29 15:33:24
100
原创 js判断文本框是否为数字
function check(){var value = document.getElementById("inputId").value;var reg=/^[1-9]\d*$|^0$/; // 注意:故意限制了 0321 这种格式,如不需要,直接reg=/^\d+$/;if(reg.test(value)==true){return true;}else{return false;...
2019-10-23 14:56:56
656
1
原创 解决在IOS下 苹果手机无法定位的问题
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <...
2019-10-21 09:35:37
936
原创 PostgresSQL 分页查询 SQL语句
SELECT * FROM “库名”.“表名” where tel like ‘%1%’ order by id asc limit 3 OFFSET 0 ;
2019-10-19 10:17:24
825
原创 c# sql级联查询 分页
public DataSet GetListByPage_ds(string strWhere, string orderby, int startIndex, int endIndex, IDbConnection conn) { string strSql = @"SELECT TOP " + endIndex + @" ...
2019-10-19 10:12:48
204
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人