使用query获取URL中的参数 //引入相关的依赖 然后在URL中输入http://localhost:8080/#/?message=wn, 页面中就会显示wn 另外我们还可以在组件中Link中设置pathname和query变量 //依然是引入各种依赖 嗯呢,就是这个样子的 ...
分类:
其他好文 时间:
2017-07-10 12:07:27
阅读次数:
157
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .your-element{ width: 500px; } img { width: 100%; } </style> ...
分类:
其他好文 时间:
2017-07-10 12:02:26
阅读次数:
1616
子类(父类的外部包)中访问父类的protetcted属性或者方法,是不可以通过创建父类对象调用的。注意:此处不讨论同包下的父类子类,因为同包下所有类都可访问protected属性或者方法。 请参见Java官方文档:Chapter 6. Names中的6.6.2.1. Access to a prot ...
分类:
其他好文 时间:
2017-07-10 12:01:29
阅读次数:
144
Wow! Such Doge! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2351 Accepted Submission(s): 1445 ...
分类:
其他好文 时间:
2017-07-10 12:00:32
阅读次数:
194
preview: '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire input string (not p... ...
分类:
其他好文 时间:
2017-07-10 10:37:37
阅读次数:
179
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2017-07-10 10:34:14
阅读次数:
202
List: imap I tried the code you referenced (the exact program and compilation script are in attachments), but it failed. The program takes input as mo... ...
分类:
其他好文 时间:
2017-07-10 10:29:23
阅读次数:
154
题解:给出了二叉树的中序和后序。重建二叉树。输出路径和最短的叶子的值。 两个模板: 给出前序和中序建树: Node* build (int n, int* preo, int* ino) { Node* node = new Node; int i = 0; if (n <= 0) return N ...
分类:
其他好文 时间:
2017-07-10 10:22:46
阅读次数:
150
虽然只是一场比较简单的比赛 但奈何我也比较弱啊.... T1 一道计算概率的题目 T SRM 04 描述 给个长度为 n 的数列,每次操作能将数列打乱(RandomShuffle),问在期望下需要多少次操作才能得到一个不降数列。 输入格式 第一行一个整数 n 表示数列长度 第二行 n 个整数 表示数 ...
分类:
其他好文 时间:
2017-07-10 10:21:43
阅读次数:
245