http://jsfiddle.net/299X4/
闲来无事,做了个小demo,顺便练习一下用元素js实现拖动效果。
document.getElementById("can3").addEventListener("mousedown",function(e){
var rect = e.currentTarget.getBoundingClientRect();...
分类:
其他 时间:
2014-03-08 01:42:45
收藏:
0 评论:
0 赞:
0 阅读:
569
#include
#include
#include
int stat(const char *path, struct stat *buf);
int fstat(int fd, struct stat *buf);
int lstat(const char *path, struct stat *buf);
三个函数的返回值:若成功则返回0,若出错则返回-1
s...
分类:
其他 时间:
2014-03-08 03:27:18
收藏:
0 评论:
0 赞:
0 阅读:
520
1、基本语法
function functionName(arg0,arg1,……,argN){
statements;
}
2、参数
JavaScript的参数传递个数和类型可以与声明的不一致,原因是JavaScript的参数在内部是用一个数组来表示的,函数接受到的是这个数组,不关心数组中的参数。在函数体内可以通过arguments对象来访问这个参数数组,从而获取传递给函数的每个参数。...
分类:
Web开发 时间:
2014-03-08 05:21:13
收藏:
0 评论:
0 赞:
0 阅读:
469
#region 判断图片是否一致
///
/// 判断图片是否一致
///
/// 图片一
/// 图片二
/// 是否一致
public bool IsSameImg(Bitmap img, Bitmap bmp)
{
//大小不一致...
分类:
其他 时间:
2014-03-08 04:50:50
收藏:
0 评论:
0 赞:
0 阅读:
499
查询示例关键设置点:
1、标题栏实现数据过滤功能:
DbGridEh.STFilter.Local:=true;//本地过滤,目前只实现了本地过滤。
DbGridEh.STFilter.visible:=true;//默认不显示
DbGridEh.STFilter.Location 可选择显示样式
2、点击标题栏实现数据排序
...
分类:
数据库技术 时间:
2014-03-08 01:43:47
收藏:
0 评论:
0 赞:
0 阅读:
452
Implementing Custom URL Schemes
If your app can receive specially formatted URLs, you should register the corresponding URL schemes with the
system. A custom URL scheme is a mechanism through which...
分类:
其他 时间:
2014-03-08 04:49:49
收藏:
0 评论:
0 赞:
0 阅读:
628
ViewPager+ViewPager作为HeaderView 滚动问题...
分类:
其他 时间:
2014-03-08 02:33:59
收藏:
0 评论:
0 赞:
0 阅读:
759
可以将tomcat的结构大概这样描述吧:
(1)sever对象是service对象的容器,
(2)service对象是connector对象和container对象的容器,同一个service对象可以包含多个connector对象,但是只能包含一个container对象。。。
(3)container对象是属于自包含的,自己又可以包含多个子container对象,
(4)同时container对象包含一个pipeline对象,pipeline对象可以理解为是valve对象的容器。。。...
分类:
其他 时间:
2014-03-08 04:48:56
收藏:
0 评论:
0 赞:
0 阅读:
539
Parentheses Balance
You are given a string consisting of parentheses () and []. A string of this type is said to becorrect:
(a)if it is the empty string(b)if A and B are correct, AB is co...
分类:
其他 时间:
2014-03-08 02:23:31
收藏:
0 评论:
0 赞:
0 阅读:
353
Lake Counting
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 17917
Accepted: 9069
Description
Due to recent rains, water has pooled in various places in F...
分类:
其他 时间:
2014-03-08 04:48:00
收藏:
0 评论:
0 赞:
0 阅读:
615
1、利用gdb制作 mxd地图(数据可以自己去下,简单的我也可以给你传)
原始的数据不做修饰的话很丑的,这样修整下看起来是不是挺舒服的
2、做好图后 用ArcMap 发布, 点击“文件”、共享为、服务
3、保存服务定义文件、下一步
4、无可用连接、选择ArcGIS Server 服务名称自己随便起
5、选择保存文件位置
6、点...
分类:
其他 时间:
2014-03-08 02:22:37
收藏:
0 评论:
0 赞:
0 阅读:
699
什么是JavaScript Binding?
在html页面中,我们可以通过JavaScript语句来访问DOM节点,例如document.createElement(“canvas”); 可是document所指向的对象HTMLDocument存在于WebKit中,通过C++实现的,并不存在于JavaScript的引擎中,所以如果想要在web页面中也能通过JavaScript来访问webkit...
分类:
Web开发 时间:
2014-03-08 05:28:46
收藏:
0 评论:
0 赞:
0 阅读:
536
一、在Html中使用JavaScript
1、标签的位置
在元素中
Demo
2、延迟脚本
HTML4.01为标签定义了defer属性。这个属性的用途是表明脚本执行时不会影响页面的构造,也就是说,脚本会延迟在整个页面都解析完毕后再运行。...
分类:
Web开发 时间:
2014-03-08 02:36:56
收藏:
0 评论:
0 赞:
0 阅读:
516
题目地址:
http://wikioi.com/problem/1026/
题目描述 Description
年轻的拉尔夫开玩笑地从一个小镇上偷走了一辆车,但他没想到的是那辆车属于警察局,并且车上装有用于发射车子移动路线的装置。
那个装置太旧了,以至于只能发射关于那辆车的移动路线的方向信息。
编写程序,通过使用一张小镇的地图帮助警察局找...
分类:
其他 时间:
2014-03-08 04:25:14
收藏:
0 评论:
0 赞:
0 阅读:
517
SQL Service 数据库获取表名,字段名,与字段类型语句。方便导出到Excel中使用。
select a.name as columnname,b.name tablename ,
c.name typename,
a.max_length,
a.precision,
a.scale
from sys.columns a,
sys.objects b,
sys.types c...
分类:
数据库技术 时间:
2014-03-08 05:01:20
收藏:
0 评论:
0 赞:
0 阅读:
736
TOYS
大意:给你一个箱子,有n个挡板分隔成n+1部分,给你m个玩具的坐标,问每一部#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define LL long long
#define max(a,b) ((a)>(b)?(...
分类:
其他 时间:
2014-03-08 04:32:46
收藏:
0 评论:
0 赞:
0 阅读:
443
简单说明了双边滤波和引导滤波的原理,并比较了他们的异同点。...
分类:
其他 时间:
2014-03-08 04:31:46
收藏:
0 评论:
0 赞:
0 阅读:
571
SSH框架搭建步骤
转载▼
SSH框架搭建步骤
开发环境:MyEclipse6.5+Tomcat6.0+MySql5.5配置环境:Struts2+Spring2+Hibernate3.1
1、首先创建Java-Web Project工程,选择J2EE 5.0版本
在网上看到很多从hibernate最底层配置,但是个人感觉...
分类:
其他 时间:
2014-03-08 02:05:33
收藏:
0 评论:
0 赞:
0 阅读:
675
### Objective-C ###
# OS X
.DS_Store
# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
...
分类:
其他 时间:
2014-03-08 05:07:53
收藏:
0 评论:
0 赞:
0 阅读:
695
说到mysql,我们立刻想起它体积小、速度快、还开源的特点,所以它应用颇广。今天我们来总结一下mysql中最频繁的两个操作:插入和查询,的优化方法。
插入:
一、文本导入
使用LOAD DATA INFILE从文本下载数据这将比使用插入语句快20倍。
示例:
load data local infile 'C:/Users/DELL/Desktop/Desc...
分类:
数据库技术 时间:
2014-03-08 03:51:02
收藏:
0 评论:
0 赞:
0 阅读:
455