1.prop 父组件传递给子组件,即通过VUE本身具有的Props属性来传递值 Child组件 Father组件 运行结果 2.非Prop传递数据 Child Father 运行结果 3.v-on v-emit 子组件传给父组件 Child Father 运行结果 4.空vue实例作为事件总线,非父 ...
分类:
其他好文 时间:
2017-10-23 20:00:44
阅读次数:
264
31w/m 43 Children always appreciate small gifts of money. Father, of course, provides a regular supply of pocket-money, but uncles and aunts are alway ...
分类:
其他好文 时间:
2017-10-16 09:43:57
阅读次数:
185
1 //递归版路径压缩 2 int find(int x){return x==Father[x]?x:Father[x]=find(Father[x]);} 3 4 void Union(int x,int y){ 5 int fx=find(x),fy=find(y); 6 if(fx!=fy)... ...
分类:
其他好文 时间:
2017-10-14 16:58:19
阅读次数:
115
声明:刚刚接触java不久,如果理解有错误或偏差望各位大佬强势批判 java中子类能继承父类的构造方法吗? 父类代码: 子类代码: 所以运行测试类,创建父类对象,调用无参构造方法初始化 结果: 有以下结果:【输出结果都用红色字体表示】 这是Father类的无参构造方法 所以运行测试类,创建父类对象, ...
分类:
编程语言 时间:
2017-10-13 20:16:12
阅读次数:
195
一般情况获取子节点,通过找到查找父节点的ID或者class类名,来获取父节点,再通过children属性,得到子节点的数组; 之前在另外一篇随笔中说过,如果使用另一个属性childNode,会把注释、空文本、非空文本、标签都当做子节点,所以不要使用childNode属性。 var father = ...
分类:
Web程序 时间:
2017-10-10 00:12:03
阅读次数:
254
#当前文件的路径 pwd = os.getcwd() #当前文件的父路径 father_path=os.path.abspath(os.path.dirname(pwd)+os.path.sep+".") #当前文件的前两级目录 grader_father=os.path.abspath(os.pa ...
分类:
编程语言 时间:
2017-10-09 11:25:46
阅读次数:
247
class Father(object): #有object就是新式类,没有object就是经典类,新式类修正了一 些bug。 def __int__(self): self.Fname = "ffff" print ("father.__init__") def Func(self): print ...
分类:
其他好文 时间:
2017-10-02 16:43:23
阅读次数:
128
如: var fc =...ChildFath = fc.Select(c => new Child_Father { child = c.child, father = c.father }).Distinct().Where(c => c.father != c.child).ToList(); ...
分类:
其他好文 时间:
2017-09-28 14:15:48
阅读次数:
149
terminal: # $ su ($ #) su - username (# $) useradd (#) passwd(#) pwd ls(list) ls -l(ll) ls -t(time) ls -a(all) "." the list now ".." the father list ( ...
分类:
系统相关 时间:
2017-09-26 13:02:35
阅读次数:
238
实例: 下载一首英文的歌词或文章,将所有,.?!等替换为空格,将所有大写转换为小写,统计某几个单词出现的次数,分隔出一个一个的单词。 str='''Where is the father? Two brothers were looking at some beautiful paintings. ...
分类:
其他好文 时间:
2017-09-22 14:04:44
阅读次数:
163