1. 安装 vuex 依赖包 2. 导入 vuex 包 3. 创建 store 对象 4. 将 store 对象挂载到 vue 实例中 Vuex 中的主要核心概念如下: State State 提供唯一的公共数据源,所有共享的数据都要统一放到 Store 的 State 中进行存储。 组件访问 St ...
分类:
其他好文 时间:
2020-02-18 13:10:07
阅读次数:
57
水题。 #include<iostream> #include<cmath> using namespace std; int main() { int c1,c2; cin>>c1>>c2; int t = round((c2-c1)/100.0);//不足 1 秒的时间四舍五入到秒 int h ...
分类:
其他好文 时间:
2020-02-18 13:02:43
阅读次数:
63
<mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> < ...
分类:
其他好文 时间:
2020-02-18 12:58:47
阅读次数:
89
一、数据类型 (一)、小技巧 1、PyCharm:选中多行,按“Ctrl+/”可批量注释掉 (二)、字符串 1、startswith(str,[,start][,end]) 实例输出结果: 2、replace(str_old,str_new[,num]) 实例输出结果: 3、strip 实例输出结果 ...
分类:
编程语言 时间:
2020-02-18 12:57:20
阅读次数:
86
结构型模式中最体现扩展性的模式是() A. 装饰模式 B. 合成模式 C. 桥接模式 D. 适配器 解析:装饰模式指的是在不必改变原类文件和使用继承的情况下,动态地扩展一个对象的功能。它是通过创建一个包装对象,也就是装饰来包裹真实的对象。 答案:A 以下描述正确的是() A. CallableSta ...
分类:
编程语言 时间:
2020-02-18 12:48:31
阅读次数:
76
01.代码如下: package TIANPAN; /** * 此处为文档注释 * * @author 田攀 微信382477247 */ public class TestDemo { public static void main(String args[]) { String stra = " ...
分类:
编程语言 时间:
2020-02-18 12:48:19
阅读次数:
58
Vue.set(vm.userInfo,'address','beijing'); 方法一:使用全局set方法 vm.$set(vm.userInfo,"address","beijing"); 方法二:使用vue实例上的$set方法 数组操作: Vue.set(vm.arr,1,5) //1为下标 ...
分类:
编程语言 时间:
2020-02-18 12:43:45
阅读次数:
337
<li> <a id='switch_sys' href='https://www.baidu.com'> 测试 </a></li> #switch_sys{ width: 166px; /*height: 40px;*/ padding-left: 88px; background-image:u ...
分类:
其他好文 时间:
2020-02-18 12:40:28
阅读次数:
486
#include <iostream> using namespace std; class AAA { public: AAA() //默认构造 { } AAA(int id, string name) { this->id = id; this->name = name; } ~AAA()//析 ...
分类:
编程语言 时间:
2020-02-18 11:20:28
阅读次数:
90
ES6 - const const 实际上保证的是不是变量的值不得改动,而是变量指向的内存地址不得改动。 对于简单数据类型(数值,字符串,布尔值),值就保存在指向的内存地址等同于常量。 对于复合类型的数据(对象和数组)变量指向的内存地址只是一个指针,只能保证指针是不变的,不保证指针指向的内容是不变的 ...
分类:
编程语言 时间:
2020-02-18 10:06:53
阅读次数:
75