03 2022 档案
摘要:‘…’ 其实是go的一种语法糖。它的第一个用法主要是用于函数有多个不定参数的情况,可以接受多个不确定数量的参数。第二个用法是slice可以被打散进行传递。 下面直接上例子: func test1(args ...string) { //可以接受任意个string参数 for _, v:= range
阅读全文
摘要:https://blog.csdn.net/sinat_26682309/article/details/90584021
阅读全文
摘要:Failed to connect to repository : Command "/usr/bin/git ls-remote -h -- http://git.c5game.com/c5game/com.c5game.android.git HEAD" returned status code
阅读全文
摘要:1、父组件可以使用 props 把数据传给子组件。2、子组件可以使用 $emit,让父组件监听到自定义事件 。 vm.$emit( event, arg ) //触发当前实例上的事件 vm.$on( event, fn );//监听event事件后运行 fn; 例如:子组件: <template>
阅读全文