<select id="selector"></select> 1、设置value为pxx的项选中 $("#selector").val("xxx"); 2、设置text为pxx的项选中 $("#selector").find("option[text='xxx']").attr("selected ...
分类:
Web程序 时间:
2016-10-07 17:31:28
阅读次数:
245
函数Abs() 描述: mixed abs (mixed number); Returns the absolute value of number. If the argument number is float, return type is also float, otherwise it i ...
分类:
编程语言 时间:
2016-10-07 13:45:48
阅读次数:
224
Python中函数的参数有4种形式,分别是: 第一种:位置或关键字参数 这种参数是Python中默认的参数类型,定义这种参数后,可以通过位置参数,或者关键字参数的形式传递参数: ## 位置或者关键字参数 ## 这个是Python的默认参数类型 ## 示例:arg2提供了默认value def fun ...
分类:
编程语言 时间:
2016-10-07 13:38:00
阅读次数:
228
网页布局中有时候有的高度需要根据内容调整,所以不能固定,今天就来说说,最小高度自适应 属性:min-height 最小高度,但IE6不识别该属性,height在IE6中类似min-height属性; 以下是解决BUG问题方法: hack1:min-height:value; _height:valu ...
分类:
其他好文 时间:
2016-10-07 11:18:51
阅读次数:
108
//readyonly 交互,不绑架输入 // add edit 为同一脚本 问题: 为什么失效? ...
分类:
其他好文 时间:
2016-10-06 22:31:01
阅读次数:
143
<details open=""> <summary>点击率</summary> <p>详细信息</p> <ul> <li>高高高<meter max="10000" min="0" low="3000" high="8000" optimum="" value="9000"></meter></l ...
分类:
Web程序 时间:
2016-10-06 19:58:39
阅读次数:
221
Redis是常用的key-value存储服务器,Java使用Redis有很多方法,其中官方推荐的是Jedis。 使用Jedis,首先是下载jedis-x.x.x.jar文件并导入工程,然后运行Redis服务器。 程序运行结果: ...
分类:
其他好文 时间:
2016-10-06 19:56:35
阅读次数:
171
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><input type="button" id="btn" value="按钮"><input type="bu ...
分类:
Web程序 时间:
2016-10-06 19:41:01
阅读次数:
211
一、基本操作 1.添加 map.put(key,value); //返回添加的值value 2.删除 map.remove(key); //返回删除的值value 3.判断包含 map.containsKey(key); 4.获取 map.get(key); 注意:直接打印System.out.pr ...
分类:
其他好文 时间:
2016-10-06 19:36:51
阅读次数:
148
Tween的主页在这里:http://createjs.com/tweenjs , 这里边还有挺多开源项目的; Tween公式 4个参数 t:current time(当前时间) b:beginning value(初始值) c: change in value(变化量) d:duration(持续 ...
分类:
其他好文 时间:
2016-10-06 19:35:35
阅读次数:
272