码迷,mamicode.com
首页 >  
搜索关键字:attribute value    ( 41598个结果
javascript和jQuery知识点总结
attribute:$(”p”).addClass(css中定义的样式类型); 给某个元素添加样式$(”img”).attr({src:”test.jpg”,alt:”test Image”}); 给某个元素添加属性/值,参数是map$(”img”).attr(”src”,”test.jpg”); ...
分类:编程语言   时间:2014-05-08 18:54:15    阅读次数:507
SqlServer中循环查询结果集
declare @id int,@value nvarchar(100);begin declare c_test_main cursor fast_forward for select hps_hpId,hps_time from hospitalPermSupp where hps_...
分类:数据库   时间:2014-05-08 14:39:27    阅读次数:498
Constants in C++
The first motivation for constseems to have been to eliminate the use of preprocessor #definefor value substitution. It has since been put to use for ...
分类:编程语言   时间:2014-05-08 13:14:07    阅读次数:496
《C++ Primer Plus 第六版》读书笔记
CH1-3:处理数据 1 列表初始化 char c={31325};不允许缩窄 char c={66}; char c={x};不能为变量 2 强制类型转换 (typename) value typename (value) static_cast (value) 更加严格 CH4:复合类型 1 s...
分类:编程语言   时间:2014-05-08 11:56:13    阅读次数:377
Hadoop-5、排序(Combiner泛谈)
一、Combiner作用1、combiner最基本是实现本地key的聚合,对map输出的key排序,value进行迭代。如下所示:map: (K1, V1) → list(K2, V2)combine: (K2, list(V2)) → list(K2, V2)reduce: (K2, list(V...
分类:其他好文   时间:2014-05-08 09:37:49    阅读次数:472
cookie和session
cookie存在于客户端,session存在于服务器端。 session:session即一次会话。比如,用户登录站点,浏览了几个页面。然后退出登录了。这就是一次会话。有些站点会在页面上显示:你已登录××分钟。就是用了session。怎么来实现session呢。每个session都会有一个sessi...
分类:其他好文   时间:2014-05-08 09:24:41    阅读次数:370
Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2014-05-08 07:29:02    阅读次数:285
Jquery操作select小结
每次操作select都要查资料,干脆总结一下。为select设置placeholder为Select添加事件,当选择其中一项时触发$("#select_id").change(function(){ //code...});jQuery获取Select选择的Text和Value:var che...
分类:Web程序   时间:2014-05-08 05:48:25    阅读次数:509
二叉树附加删除算法
public class Tree { TreeNode last = null; TreeNode root = null; public Tree(int value){ root = createNode(value); } ...
分类:其他好文   时间:2014-05-08 01:04:08    阅读次数:349
AttributeError: 'module' object has no attribute 'handlers'--Python子模块导入问题
想使用python的logging模块记录日志,并使用RotatingFileHandler来处理日志以便于在日志文件超过指定的大小后会重新生成新的日志文件。 基本代码如下: import logging logger = logging.getLogger('mylogger') logger.setLevel(logging.INFO) fh=logging.handlers.Ro...
分类:编程语言   时间:2014-05-08 00:25:12    阅读次数:457
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!