今天在学习android开发的时候,写了这样的一段代码: 然后eclipse就报出提示:This tag and its children can be replaced by one and a compound drawable最后查了一下资料发现:有时候我们可能会用image+...
分类:
系统相关 时间:
2015-12-13 21:51:39
阅读次数:
296
废话不多说,先来个总结,然后下面是demo一. 同级节点之间的检索(检索深度N=0)next()是在兄弟节点中,往后匹配;prev()是在兄弟节点中,往前匹配。二. 父级/子级节点的检索(检索深度N=1)children()是在子节点中,往后匹配。parent()是在父节点中,往前匹配。ps:请注意...
分类:
Web程序 时间:
2015-12-13 16:55:16
阅读次数:
186
第1步:找到根目录的category.php文件,查找约:486行左右(注意这不是准确位置,看实际的哦),找到这个函数: /** * 获得分类下的商品 * * @access public * @param string $children * @return array */functi...
分类:
其他好文 时间:
2015-12-11 14:53:30
阅读次数:
303
var curGrid = myGrid.Children.OfType().FirstOrDefault(x => x.ActualHeight == 100);OfType() :根据指定类型筛选 IEnumerable 的元素。First(Func):返回序列中满足指定条件的第一个元素。还有很...
分类:
其他好文 时间:
2015-12-10 21:41:12
阅读次数:
110
jQuery 遍历函数包括了用于筛选、查找和串联元素的方法。函数描述.add()将元素添加到匹配元素的集合中。.andSelf()把堆栈中之前的元素集添加到当前集合中。.children()获得匹配元素集合中每个元素的所有子元素。.closest()从元素本身开始,逐级向上级元素匹配,并返回最先匹配...
分类:
Web程序 时间:
2015-12-09 01:55:09
阅读次数:
217
8.1 Trees-->root,children, parent, siblings, leaf; level, degree of element 的基本概念8.2 Binary Trees-->什么样的tree是Binary Tree8.3. Properties of Binary Tree...
分类:
编程语言 时间:
2015-12-08 17:53:02
阅读次数:
128
parent.document.getElementById("dom ID"); $($(parent.document.getElementById("video-iframe")).parent().parent()).children('div.vid-tags').text(desc);p...
分类:
其他好文 时间:
2015-12-08 00:11:50
阅读次数:
121
$("#proDetailsList tbody tr").each(function () { var price = $(this).children("td").eq(6).children().text(); price = Number(price); sumPrice += price....
分类:
其他好文 时间:
2015-12-07 18:38:11
阅读次数:
123
本节课重点了解 EasyUI 中 TreeGrid(树形表格)组件的使用方法,这个组件依赖于DataGrid(数据表格)组件一. 加载方式//建立一个 JSON 文件[{"id" : 1,"name" : "系统管理","date" : "2015-05-10","children" : [{"id...
分类:
其他好文 时间:
2015-12-04 00:53:43
阅读次数:
186
php-fpm.conf有两个至关重要的参数:一个是”max_children”,另一个是”request_terminate_timeout”我的两个设置的值一个是”40″,一个是”900″,但是这个值不是通用的,而是需要自己计算的。计算的方式如下:如果你的服务器性能足够好,且宽带资源足够充足,P...
分类:
Web程序 时间:
2015-11-27 17:25:35
阅读次数:
128