路由传参 用于组件与组件之间通过路由传递数据 通过url正则传递数据 i)设置 ii)如何传 vue this.$router.push( ) vue this.$route对象是管理路由参数的,传递的参数会在this.$route.params字典中 this.$route.params.pk 示 ...
分类:
其他好文 时间:
2020-02-18 09:20:29
阅读次数:
57
本文基于 Altera 官方原版文档《SignalTap II with Verilog Designs》改编而成,原文可在百度文库中下载:https://wenku.baidu.com/view/3931a1edaeaad1f346933fe3.html?from=search 一、Verilog ...
分类:
其他好文 时间:
2020-02-17 19:52:23
阅读次数:
110
题目 一只青蛙一次可以跳上1级台阶,也可以跳上2级台阶。求该青蛙跳上一个 n?级的台阶总共有多少种跳法。 答案需要取模 1e9+7(1000000007),如计算初始结果为:1000000008,请返回 1。 示例 1: 示例 2: 提示: 思路 同 "【剑指Offer】面试题10 I. 斐波那契数 ...
分类:
其他好文 时间:
2020-02-17 19:45:07
阅读次数:
66
链接:https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof/ 代码: class Solution { public: int numWays(int n) { std::vector<int> vec = {1, 1}; ...
分类:
其他好文 时间:
2020-02-17 17:52:45
阅读次数:
49
前后台交互方式(重点) """ 1)form表单方式 i)get | post 两种请求方式,get请求包含直接在浏览器中输入url回车后发送的请求 ii)该方式的特点是一定会发生页面的跳转(刷新页面叫本页跳转) - 后台决定页面路由 2)ajax异步方式 i)get | post | patch ...
分类:
移动开发 时间:
2020-02-17 00:37:17
阅读次数:
137
Problem : Reverse a linked list from position m to n . Do it in one pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: 思路 : 保存2个节点 和`cur pre cur cur nex ...
分类:
其他好文 时间:
2020-02-16 01:21:34
阅读次数:
57
8.02 Physics II (电磁学基础) Introduction to electromagnetism and electrostatics: electric charge, Coulomb's law, electric structure of matter; conductors ...
分类:
其他好文 时间:
2020-02-15 15:56:37
阅读次数:
248
"题目" 和这道题目 https://www.cnblogs.com/dacc123/p/12295924.html 一样,改进了一点,就是首尾也是相邻的。 那么我们在DP的时候,还要考虑第一个房子有没有被抢劫的情况。所以状态数组变成了DP[i][j][k],j表示i个房子是否抢劫,k表示第1个房子 ...
分类:
其他好文 时间:
2020-02-15 13:35:47
阅读次数:
55
import itertools mylist=list(itertools.permutations([1,2,3,4],3)) #排列 print(mylist) print(len(mylist)) mylist=list(itertools.combinations([1,2,3,4],3) ...
分类:
编程语言 时间:
2020-02-14 18:49:11
阅读次数:
87
罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值I 1V 5X 10L 50C 100D 500M 1000例如, 罗马数字 2 写做 II ,即为两个并列的 1。12 写做 XII ,即为 X + II 。 27 写做 XXVII, 即为 XX + V + II 。 ...
分类:
其他好文 时间:
2020-02-14 16:29:31
阅读次数:
41