父向子组件传递 在父组件里子组件的模板里写上要传递的key和value <child key='value'></child> 或者 <child :key='value'></child> 如果是通过冒号绑定, value需要先在data里定义 子组件内添加props:['key'] 进行接收 p ...
分类:
其他好文 时间:
2018-11-12 11:37:49
阅读次数:
143
原文:WPFのDecorator 、Adorner和AdornerDecoratorDecorator 和 Adorner 它们都有“装饰品”的意思。 Decorator类负责包装某个UI元素,以提供额外的行为。它有一个类型为UIElement的Child属性,其中含有待包装的内容。Decorato... ...
1、数组乱序 由于使用sort加Math.random()*0.5实现的排序乱序有很大机会在同一个位置出现的几率比较高,而且每个位置的几率都不平均。 而以上的实现可以证实比较优的方法。 数学归纳法: 证明: i/(i+1)*(i-1/i)...2/3*1/2 = 1/(i+1) 1、n=2时,替换几 ...
分类:
编程语言 时间:
2018-11-11 01:00:31
阅读次数:
195
1.Controls.Find 具体定义如下,参数是(控件名,是否搜索子控件) public Control[] Find(string key, bool searchAllChildren); 应用场景:还原默认配置的时候,从XML文件读出控件名+一些属性,来一个var currentContr ...
分类:
Web程序 时间:
2018-11-10 20:11:26
阅读次数:
272
Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file contains one test case. For each case, th ...
分类:
其他好文 时间:
2018-11-10 18:06:26
阅读次数:
279
1.较精准定位 2.关于Appium+RF的轴表达式 child:选取当前节点的所有子元素 parent:选取当前节点的直接父元素 descendant:选取当前节点的所有后代元素 ancestor:选取当前节点的所有先辈元素 preceding:选取当前节点之前的所有节点 preceding-si ...
分类:
其他好文 时间:
2018-11-10 15:31:28
阅读次数:
160
### change ggplot strip coloursp <- ggplot(mpg, aes(displ, cty)) + geom_point() + facet_grid(drv ~ cyl)pg <- ggplot_gtable(ggplot_build(p))strip_both ...
分类:
其他好文 时间:
2018-11-10 10:43:00
阅读次数:
690
完整错误信息如下: [INFO] Scanning for projects...[INFO] [INFO] < com.taotao:taotao-manager-web > [INFO] Building taotao-manager-web 0.0.1-SNAPSHOT[INFO] [ war ...
分类:
其他好文 时间:
2018-11-09 13:46:10
阅读次数:
166
<ul nz-menu [nzMode]="'inline'" nzTheme='dark' [nzInlineCollapsed]="isCollapsed"> <li nz-submenu *ngFor="let parent of menus" [nzOpen]="rla2.isActive" ...
分类:
其他好文 时间:
2018-11-08 13:45:14
阅读次数:
262
现象使用exec()执行DOS命令dir,结果出现乱码:分析代码如下:$(document).ready(()=>{constexec=require(‘child_process‘).exec;//任何你期望执行的cmd命令,ls都可以letcmdStr=‘dir‘;//执行cmd命令的目录,如果使用cdxx&&上面的命令,这种将会无法正常退出子进程letcmdPath=‘
分类:
其他好文 时间:
2018-11-08 10:59:51
阅读次数:
348