路由:路:路径(地址) 由:方向 针对于单页面应用,所提供的一个解决方案。根据地址传递的参数,来决定具体要使用的组件。 1、下载(如果已下载该步可以省略) cnpm install vue-router -S 2、引入 import Router from 'vue-router' 3、安装: Vu... ...
分类:
其他好文 时间:
2019-08-22 22:03:08
阅读次数:
89
xpath的使用基本语法: 1.// 从根节点开始,查找对象是全文。 2./ 从当前标签的路径开始查找 3.text()获取当前路径下的文本 4.@+类名或者id名 查找类名或者id的名字 5. .一个点表示当前节点 (1)获取某个标签的内容 (2)根据标签属性来查找指定的标签,获取指定标签的属性 ...
分类:
其他好文 时间:
2019-08-22 13:19:13
阅读次数:
87
层级选择器 1. child Selector("parent > child")子元素选择器 1. jQuery("parent > child") 1. parent : 任何有效的选择器 2. child :用来筛选子元素的选择器 2. 选择所有指定parent元素中指定的child直接的子元 ...
分类:
其他好文 时间:
2019-08-22 00:39:59
阅读次数:
107
1.颜色名表示法 : red 2.rgb 表示法 rgb(255,0,0)3.16进制表示法 #ff 精确控制每个div的内容 1. 标签选择器 div p 等等 *{ .. ... ... } 选择所有便签 2. id选择器 属性 id="div1" 使用时 #div1{ ... ... ... ...
分类:
Web程序 时间:
2019-08-21 23:21:42
阅读次数:
209
1 #include 2 #include 3 4 struct BTNode{ 5 char data;//数据域 6 struct BTNode * pLchild;//p是指针,L是左,child是孩子;即为左子树指针 7 struct BTNode * pRchild//右子树指针 8 } ... ...
分类:
其他好文 时间:
2019-08-20 23:52:04
阅读次数:
85
本来我一直都是使用递归算法, 效率很低 下边这段代码是我原来写的 procedure TForm1.GetDepartmentMsg;var Test, Test2 : TTreeNode; procedure NodeAdd(Test : TTreeNode; DepartmentId : str ...
File: 文件和目录路径名的抽象表示形式。 构造方法 public File(String pathname) public File(String parent,String child) public File(File parent,String child) 创建功能 public boo ...
分类:
编程语言 时间:
2019-08-20 18:28:56
阅读次数:
67
有了这个addRule方法就可以设置很多其他属性了,通过源码可知RelativeLayout是使用mRules这个数组来记录哪种属性使用到了,一共有22种属性: /** * Rule that aligns a child's right edge with another child's left ...
分类:
其他好文 时间:
2019-08-19 21:04:27
阅读次数:
57
function array2tree($data, $pId) { $tree = array(); foreach($data as $k => $v) { if ($v['father_id'] == $pId) { $v['child'] = array2tree($data, $v['or ...
分类:
其他好文 时间:
2019-08-19 17:26:42
阅读次数:
54
<ul id="box"> <li>a</li> <li>b</li> <li>c</li> </ul>#box{display:box;width:240px;height:100px;margin:0;padding:10px;list-style:none;} #box li:nth-chil ...
分类:
其他好文 时间:
2019-08-19 09:46:41
阅读次数:
113