1、.bind()
描述: 为一个元素绑定一个事件处理程序。
.bind()一个基本的用法:
$(selector).bind('click', function() {
alert('User clicked on "foo."');
}); 可以直接用原生js替代为:$(selector).click( function() {
alert('User clicked on "f...
分类:
Web程序 时间:
2014-05-23 02:02:52
阅读次数:
443
介绍一个list滑动时通过一个text提示Array首字母位置的应用
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce...
分类:
其他好文 时间:
2014-05-23 00:58:42
阅读次数:
326
vb.net视频看了一大半了,真心听不懂台湾资深讲师的专业术语,只能在前有的vb和c#的基础上充分发挥自己的想象力。刚刚接触vb.net,好熟悉的赶脚,这不就跟vb一样吗?慢慢接触才知道,很多东西确实跟vb很相似,但是还有一部分又跟c#共通。难道死vb跟c#的“私生子”?呵呵,下面就比较一下这三种语言。
1.vb与vb.net
我们都学过vb了,虽然台湾老师讲的有点让人费解,但是如果我们跟以前...
分类:
Web程序 时间:
2014-05-23 00:51:00
阅读次数:
292
注意两点
1.通过android:checkedButton="@+id/lunch"而不是item中的 android:checked="true"设置的某人被选中状态
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
a...
分类:
其他好文 时间:
2014-05-23 00:04:35
阅读次数:
344
1、下载svn插件
下载地址:http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240,下载最新的稳定版即可。我下载是site-1.8.22.zip。
2、新建文件夹
例如:
新建一个【D:\myplugins\svn\eclipse\】(文件夹名和位置...
分类:
系统相关 时间:
2014-05-22 23:38:49
阅读次数:
741
构建node扩展的方法:
1,安装node.js 版本为0.10.24.msi
2,安装node-gyp, npm install -g node-gyp
3,构建 hello工程
cd 到 node-gyp-hello\src
node-gyp configure
node-gyp build
构建node-webkit扩展的方法:
1,安装node.js 版本为0.10...
分类:
编程语言 时间:
2014-05-22 23:38:12
阅读次数:
377
使用 HTTP
Web 使用超文本传输协议(Hypertext Transfer Protocol,HTTP)通信,通常用 web 浏览器,但是,出于某些原因,也可能想用脚本或程序中发出 web 请求,例如,通过 RSS 或 Atom feeds 收集站点内容。
生成 HTTP 请求,需要用 System.Net.WebRequest 类的静态方法 Create。它创建 WebRequ...
分类:
其他好文 时间:
2014-05-22 23:02:45
阅读次数:
307
修改/etc/udev/rules.d/60-raw.rules文件
# 现在我们把/dev/sdb1 知道到raw1上,就可以在/etc/udev/rules.d/60-raw.rules文件里添加如下内容:
[root@centos~]#vi /etc/udev/rules.d/60-raw.rules
Cat >> /etc/udev/rules.d/60-raw.rules<< EOF
ACTION=="add",KERNEL=="sdb1",RUN+="/bin/raw /dev/raw/r...
分类:
系统相关 时间:
2014-05-22 18:38:24
阅读次数:
400
UVa OJ 127 - "Accordian" Patience (“手风琴”纸牌)
Time limit: 3.000 seconds
限时:3.000秒
Problem
问题
You are to simulate the playing of games of "Accordian" patience, the rules for which are as foll...
分类:
其他好文 时间:
2014-05-22 18:37:03
阅读次数:
456
Direct request is the simplest method used to request a semaphore. The request behaves as an atomic read and set operation. The result of a request is either to grant the semaphore
to the requesting...
分类:
其他好文 时间:
2014-05-22 17:21:38
阅读次数:
517