this.$store.dispatch() 与 this.$store.commit()方法的区别总的来说他们只是存取方式的不同,两个方法都是传值给vuex的mutation改变statethis.$store.dispatch() :含有异步操作,例如向后台提交数据,写法:this.$store ...
分类:
其他好文 时间:
2021-05-24 16:32:55
阅读次数:
0
一.GridView 在控制器 public function actionIndex() { $query = User::find(); $pages = new Pagination(['totalCount' =>$query->count()]); $dataProvider = new ...
分类:
其他好文 时间:
2021-05-24 16:31:36
阅读次数:
0
之前为了求快,认为递归和动态规划是一类的,导致做了不少递归的题只能想到思路,但就是没法代码实现出来!!! 现在学习二叉树,我觉得对学习递归真的很有帮助! 二叉树的基础:遍历二叉树 二叉树遍历是基础,如果我们不能遍历二叉树,又如何对二叉树的节点进行操作呢? 二叉树的节点: /** * @author ...
分类:
其他好文 时间:
2021-05-24 14:38:57
阅读次数:
0
最近参加了一次蚂蚁金服的面试,其中有两道笔试题,分别是手写事件总栈和手写模板引擎 手写模板引擎比较复杂,除了需要识别 {{data.name}} 这种基本情况之外, 还要兼顾 {{data.info[1]}}、{{data.others["about"]}} 于是先记录下手写事件总栈,后面再完善手写 ...
分类:
其他好文 时间:
2021-05-24 13:06:22
阅读次数:
0
hash 和 history的区别 hash 有#,history 没有,Hash式基于锚点,History 模式 基于H5的History API hash 的#部分内容不会传给服务端, history 的所有内容都会给服务端,应用在部署的时候需要注意html的访问,因为无论访问什么/a,/b,/ ...
分类:
其他好文 时间:
2021-05-24 12:23:52
阅读次数:
0
List的Stream包装,让数据流转换代码写得更加健壮而流畅。 ...
分类:
其他好文 时间:
2021-05-24 12:08:18
阅读次数:
0
frameworks/base/core/java/android/os/ConditionVariable.java 1 /* 2 * Copyright (C) 2006 The Android Open Source Project 3 * 4 * Licensed under the Apa ...
分类:
移动开发 时间:
2021-05-24 10:45:44
阅读次数:
0
通过闭包封装私有变量 function a() { //函数外访问不到 var s = 3; //使外部能够获得s变量的值 this.f = function () { return s } //改变s的值 this.add=function(){ s++ } } var t = new a() t ...
分类:
Web程序 时间:
2021-05-24 10:11:16
阅读次数:
0
import QtQuick 2.9 // 导入模块 import QtQuick.Window 2.2 import QtQuick.Controls 2.2 import "./Jiejs.js" as Jie // 导入jswenjian1 Window { visible: true wid ...
分类:
Web程序 时间:
2021-05-24 10:00:00
阅读次数:
0
反馈邮件: Guideline 5.3.2 - Legal - Gaming, Gambling, and Lotteries Your app includes a contest or sweepstakes but it does not: - Indicate that Apple is n ...
分类:
移动开发 时间:
2021-05-24 08:46:43
阅读次数:
0