码迷,mamicode.com
首页 >  
搜索关键字:turn    ( 27138个结果
Vue组件component标签的使用
内置组件component的用法 <component></component>标签是Vue框架自定义的标签,它的用途就是可以动态绑定我们的组件,根据数据的不同更换不同的组件 先看一下vue.js官网的用法: 也就是说component通过属性is的值可以渲染不同的组件。 看一下实际开发中的用法: ...
分类:其他好文   时间:2020-04-28 16:59:28    阅读次数:462
s3 冒泡排序
一:解题思路 Time:O(n^2),Space:O(1) 二:完整代码示例 (C++版和Java版) C++: template <typename T> static void Swap(T& a,T& b) { T c(a); a=b; b=c; } template <typename T> ...
分类:编程语言   时间:2020-04-28 16:41:28    阅读次数:53
MSSQL:仿写MYSQL的substring_index 截断函数 F_SUBSTRING_INDEX
MSSQL:仿写MYSQL的substring_index 截断函数 F_SUBSTRING_INDEX ...
分类:数据库   时间:2020-04-28 15:17:47    阅读次数:68
gateway 过滤器
@Component @Configuration public class GateWayFilter implements GlobalFilter, Ordered { @Override public Mono<Void> filter(ServerWebExchange exchange, ...
分类:其他好文   时间:2020-04-28 14:41:43    阅读次数:69
395. 至少有K个重复字符的最长子串
1 class Solution 2 { 3 public: 4 int longestSubstring(string s, int k) 5 { 6 if(s.empty()) return 0; 7 vector<int> hash(26); 8 for(auto a : s) hash[a ...
分类:其他好文   时间:2020-04-28 12:30:15    阅读次数:56
判断是否为平衡二叉树
题目描述 输入一棵二叉树,判断该二叉树是否是平衡二叉树。 在这里,我们只需要考虑其平衡性,不需要考虑其是不是排序二叉树 解法1:逐个判断每个节点 1 # -*- coding:utf-8 -*- 2 # class TreeNode: 3 # def __init__(self, x): 4 # s ...
分类:其他好文   时间:2020-04-28 12:29:39    阅读次数:98
leetcode 每日一题 16. 最接近的三数之和
1.暴力法 思路: 遍历枚举出每一种情况,找到最接近的。 代码: class Solution: def threeSumClosest(self, nums: List[int], target: int) -> int: minCom = abs(nums[0] + nums[1] + nums ...
分类:其他好文   时间:2020-04-28 11:17:21    阅读次数:62
vue长按事件
html <div class="test" @touchstart="gtouchstart()">按啊</div> js data(){ return { timeOutEvent: 0 ,// 长按事件定时器 }} methods: { gtouchstart () { // 开始触摸 thi ...
分类:其他好文   时间:2020-04-28 09:13:43    阅读次数:76
双向链表反转
/** * 双向链表反转 */public class RevertDoubleNode { public static class DoubleNode<T> { public T value; public DoubleNode pre; public DoubleNode next; publ ...
分类:其他好文   时间:2020-04-28 00:50:55    阅读次数:53
[LeetCode] 33. 搜索旋转排序数组
感觉这个题不难。。。做出来了 class Solution { public int search(int[] nums, int target) { if (nums == null || nums.length == 0) { return -1; } int start = 0; int en ...
分类:编程语言   时间:2020-04-28 00:09:44    阅读次数:47
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!