类内部函数调用内部的函数和变量要加$this->,外部访问类内值 类名-> class kk{function aa(){ echo "aa";}function bb(){ return $this->aa();} }$cc= new kk;$cc->bb(); ...
分类:
Web程序 时间:
2021-05-03 11:57:27
阅读次数:
0
Vue router如何传参 要点总结:在vue-router中,有两大对象被挂载到了实例this;$route(只读、具备信息的对象);$router(具备功能的函数) 查询字符串:去哪里 ?<router-link :to="{name:'detail',query:{id:1}}"> xxx ...
分类:
其他好文 时间:
2021-05-03 11:55:38
阅读次数:
0
DatePicker组件默认语言是英语,需要设置为中文的话,需要安装moment。 import moment from "moment"; import "moment/locale/zh-cn" format属性,设置日期的格式,如“2020-02-28”。 设置日期 选择日期是今天之前【包含今 ...
分类:
其他好文 时间:
2021-05-03 11:51:55
阅读次数:
0
Django cbv的执行流程 path('test/',views.TestView.as_view()), # path('test/',View类的as_view内部有个view闭包函数内存地址), # path的第二个参数是:View类的as_view内部有个view闭包函数内存地址 1 一 ...
upload是将小程序码图片存储到云存储 json权限 我的界面调用云函数 ...
分类:
微信 时间:
2021-04-30 12:32:31
阅读次数:
0
实验任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n ...
分类:
编程语言 时间:
2021-04-30 12:31:46
阅读次数:
0
任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = ...
分类:
其他好文 时间:
2021-04-30 12:31:08
阅读次数:
0
#include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = %d, ...
分类:
其他好文 时间:
2021-04-30 12:24:09
阅读次数:
0
在vue中我们经常会使用/Id/:id 尽管我们改变了id传入了不同的路由,但我们还是使用的同一个view。 当我们多个路由公用一个组件时,钩子函数(created和mounted)只会触发一次,我们如果想要多次触发,有两种方法: 第一种方法: 在app.vue中添加: <router-view : ...
分类:
其他好文 时间:
2021-04-30 12:16:59
阅读次数:
0
1.gpio引脚申请 1 ret = gpio_request(linux_gpio, "xxxx_gpio"); //一个参数是linux内部的gpio编号 2.gpio引脚转成中断io,并返回中断号 1 irq = gpio_to_irq(linux_gpio); 3.注册中断函数 reques ...
分类:
其他好文 时间:
2021-04-30 12:16:44
阅读次数:
0