window.location.href = xxxx?a=encodeURI(encodeURI(name)) ; name是中文,页面部分需要编码两次 name = java.net.URLDecoder.decode(name, "UTF-8"); 为什么要连续两次调用encodeURI(St ...
分类:
Web程序 时间:
2016-05-25 14:56:35
阅读次数:
197
获取当前日期直接用NEW date() Ext.Date英文API http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Date Ext.Date是一个单例类,封装了一系列日期操作函数,扩展JavaScript Date的功能,下面列出一些常用的功能。 Ext. ...
分类:
Web程序 时间:
2016-05-25 14:54:24
阅读次数:
166
第一步: 去除eclipse的JS验证: 将windows->preference->Java Script->Validator->Errors/Warnings-> Enable Javascript Sematic validation前面的勾去掉; 第二步: 右键项目 -> properti ...
分类:
Web程序 时间:
2016-05-25 14:49:44
阅读次数:
817
代码上传github 代码上传到github的步骤 第一步:申请github账号 https://github.com/注册账号 第二步:登录github,新建repository仓库,命名,创建 第三步:下载安装git bash 第四步:右击自己的项目—》Git Bash Here 第五步:直接在 ...
分类:
Web程序 时间:
2016-05-25 14:46:47
阅读次数:
174
1994 cd ~/下载 1995 ls 1996 cd php-7.0.5/ 1997 ls 1998 history|grep configure 1999 ./configure --prefix=/usr/local/php7 --with-pdo-mysql=mysqlnd 2000 /u ...
分类:
Web程序 时间:
2016-05-25 14:48:05
阅读次数:
184
导入web项目到eclipse中,显示为java项目, 右键点击项目 ->属性(Properties) 然后:如图操作 输入face 选择 勾选动态web, 保存。 接下来 因为 MyEclipse创建web项目(生成WebRoot)和eclipse是生成创建项目(生成WebContent)的web ...
分类:
Web程序 时间:
2016-05-25 14:44:36
阅读次数:
195
第一个NhIbernate程序 1、目的: a) 链接到oracle数据库 b) 增删改 c) 基本查询、sql查询 d) 视图查询 e) 使用存储过程 f) 多表查询、级联查询 g) 级联增删改 2、后续目的 a) 加载机制——立即加载or延迟加载 b) 并发控制 c) 缓存——一级缓存,二级缓存 ...
分类:
Web程序 时间:
2016-05-25 14:44:04
阅读次数:
241
下载json2.js 此时如果我想获取姓名和学校两个字段呢?简单,我们只需重新遍历一下,但其实有个更简单的方法: 嗯,那我们要想修改某个字段内容呢?我们可以把第二个参数用回调函数来处理 反过来,我要把上面的字符串解析成json对象,要怎么做? 最后介绍个比较鸡肋的功能(格式化字符串) ...
分类:
Web程序 时间:
2016-05-25 14:43:22
阅读次数:
159
WebSocket, like as TCP, is a bi-directional, full-duplex communication channel over a single TCP connection but it shortens abundant complications clo ...
分类:
Web程序 时间:
2016-05-25 14:43:50
阅读次数:
247
1、选择器有以下几类: 1、ID选择器 #aaaa{} 2、类选择器 .aaaa{} 3、属性选择器 简单 :h1[属性名]{} 具体 :h1[属性名=""]{} 部分:h1[属性名~=""]{} 开头 :h1[属性名^=""]{} 结尾 :h1[属性名$=""]{} 包含 :h1[属性名*=""] ...
分类:
Web程序 时间:
2016-05-25 14:45:12
阅读次数:
171
通过Python调用iTop的Webservice接口: https://sourceforge.net/p/itop/discussion/922361/thread/0c0ad12f/ https://wiki.openitop.org/doku.php?id=advancedtopics:re ...
分类:
Web程序 时间:
2016-05-25 14:42:54
阅读次数:
405
一般后台界面都用bootstrap框架,这是一个css框架,里面封装了ajax方法,只需要在样式中指定就行,根本自己不用写 ...
分类:
Web程序 时间:
2016-05-25 14:40:39
阅读次数:
216