$(function () {
$("#btn1").click(function () {
alert($("input[name='r1']:checked").val()) //获取选中的值
})
$("#btn2").click(function () {
...
分类:
Web程序 时间:
2014-07-30 01:01:42
阅读次数:
307
.class1{ color:Red}
.class2{ font-size:100px}
$(function () {
$("#btn1").click(function () { //当点击#btn1的时候给#div1添加一个class2的样式
$("#div1").addClas...
分类:
其他好文 时间:
2014-07-29 22:08:22
阅读次数:
247
Reverse Integer
java,python,C++三种代码练习
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
click to show s...
分类:
其他好文 时间:
2014-07-29 22:02:52
阅读次数:
333
jquery中的事件绑定:$("#btn").bind("click",function(){})...
分类:
Web程序 时间:
2014-07-29 18:06:22
阅读次数:
496
每一个javascript事件(例如:click,mouseover等)都会冒泡到父级节点。当我们需要给多个元素调用同一个函数时这点会很有用。比如,我们要为一个表格绑定这样的行为:点击td后,把背景色设置为红色,代码如下:$(".myTable td").click(function(){ $...
分类:
其他好文 时间:
2014-07-29 16:49:32
阅读次数:
250
Windows VMware Tools安装很简单。 1.?On the host, from the Workstation menu bar, select?VM?>?Manage?>?Install VMware Tools 2. click OK and then restart. Linux VMware Tools安装估计有点困难,我也...
分类:
其他好文 时间:
2014-07-29 16:10:59
阅读次数:
316
privatevoidLogin_Click(objectsender,System.EventArgse){//作为唯一标识的Key,应该是唯一的,这可根据需要自己设定规则。//做为测试,这里用用户名和密码的组合来做标识;也不进行其它的错误检查。//生成KeystringsKey=UserName...
分类:
其他好文 时间:
2014-07-29 13:46:18
阅读次数:
190
需为2003版本private void button1_Click(object sender, EventArgs e) { string resultFile = ""; OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFi...
分类:
其他好文 时间:
2014-07-28 23:39:04
阅读次数:
249
$(function(){$(document).bind("click",function(e){if($(e.target).closest("#txt").length>0){$("#tip").show();}else{$("#tip").hide();}}); });closest会首先....
分类:
Web程序 时间:
2014-07-28 23:35:54
阅读次数:
348
一、下一个选项卡 //下一个选项卡
$(‘#J_next‘).click(function(e)?{
e.preventDefault();
e.stopPropagation();
var?ul?=?$(‘#B_history‘),
current?=?ul.find(‘.current‘),
li?=?current.next(...
分类:
编程语言 时间:
2014-07-28 17:03:55
阅读次数:
302