Vue学习笔记-2 目录 前言 1、computed计算属性函数中不能使用vm变量 2、计算属性中不能引用其他计算属性? 3、vue2.0中若使用组件嵌套,则在父组件执行\$forceUpdate()之前模板中\$children为空数组 解决方案1:使用\$forceUpdate() 解决方案2: ...
分类:
其他好文 时间:
2016-11-28 22:42:51
阅读次数:
883
1.在html中引入css和jQuery <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="css文件"> #引入css文件 ...
分类:
Web程序 时间:
2016-11-28 14:49:32
阅读次数:
246
//绑定事件 $(document).ready(function () { $("ul").children().click(function () { clickLi(this); }) }); //点击li标签跳转,根据li标签的url属性 function clickLi(obj) { va ...
分类:
其他好文 时间:
2016-11-26 02:42:39
阅读次数:
475
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g ...
分类:
其他好文 时间:
2016-11-25 07:26:38
阅读次数:
152
Vue实例方法实例属性1、组件树访问1-1、vm.$parent用来访问当前组件实例的父实例,如果当前实例有的话1-2、vm.$root当前组件树的根Vue实例。如果当前实例没有父实例,此实例将会是其自已1-3、vm.$children类型:Array<Vueinstance>当前实例的直接子组件。需要注意$childr..
分类:
Web程序 时间:
2016-11-24 19:36:56
阅读次数:
1421
https://discuss.leetcode.com/topic/39834/step-by-step-tackling-of-the-problem rob(root) which will return the maximum amount of money that we can rob ...
分类:
其他好文 时间:
2016-11-23 12:41:31
阅读次数:
237
zkclient 快速指南 Maven依赖 最新的版本发布在Maven中央库。 <dependency> <groupId>com.github.adyliu</groupId> <artifactId>zkclient</artifactId> <version>2.0</version></de ...
分类:
其他好文 时间:
2016-11-23 06:45:26
阅读次数:
709
【转】sphinx服务器安装及配置详解 安装PHP sphinx扩展 (2012-05-24 12:09:29) 转载▼ 【转】sphinx服务器安装及配置详解 安装PHP sphinx扩展 转载▼ 标签: it 分类: linux it 1、架构:ip192.168.0.200 redhat5.4 ...
分类:
其他好文 时间:
2016-11-22 17:39:36
阅读次数:
183
private function tree_data(&$list, $parent){ $tree = array(); foreach($list as $row) { if($row['permission_parent_id'] == $parent) { $row['children'] ...
分类:
编程语言 时间:
2016-11-22 11:42:06
阅读次数:
154