在Vue-cli中使用lang="less"时报错:Module build failed: TypeError: this.getOptions is not a function at Object.loader (D:\WORK\VueProject\XiaoWei\node_modules\ ...
分类:
其他好文 时间:
2021-06-30 18:25:45
阅读次数:
0
public static String getCodeOfFive(String prefix, int nowNum) { //需要返回的code StringBuilder codeSb = new StringBuilder(); //需要拼接的数字 StringBuilder numSb ...
分类:
其他好文 时间:
2021-06-30 18:24:06
阅读次数:
0
直接贴源代码: package com.java.fmd; import java.util.Arrays; import java.util.Scanner; public class QuickSort { public static int b=1; public static void sw ...
分类:
编程语言 时间:
2021-06-30 18:18:09
阅读次数:
0
1. 线程安全 排它锁用于确保同一时间只允许一个线程执行指定的代码段。主要的两个排它锁构造是lock和Mutex(互斥体)。其中lock更快,使用也更方便。而Mutex的优势是它可以跨进程的使用。 lock 排他锁 class ThreadUnsafe { static int _val1 = 1, ...
分类:
编程语言 时间:
2021-06-30 18:15:34
阅读次数:
0
#!/usr/bin/env bash __Author__="liy" # 发送钉钉告警 function DingDing(){ curl 'https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxx ...
分类:
其他好文 时间:
2021-06-30 18:14:38
阅读次数:
0
打印三角形 public class TriangleDemo { public static void main(String[] args) { for (int j = 1; j <= 5; j++) { for (int i = 5; i >= j; i--) { System.out.pr ...
分类:
编程语言 时间:
2021-06-30 18:13:09
阅读次数:
0
相似推荐的数据请求是独立的,对应的接口为“/recommend”。 export function getRecommend(){ return request({ url: '/recommend', }) } 仍然是在created函数中: // 3、获取推荐数据 getRecommend(). ...
分类:
其他好文 时间:
2021-06-30 18:12:52
阅读次数:
0
1. 长度最小的子数组 20210629晚 来源链接:leetCode:209 确定快慢指针移动的策略 点击查看代码 var minSubArrayLen = function(target, nums) { let slow = 0; let fast = 0; let sum = 0; let ...
分类:
编程语言 时间:
2021-06-30 18:11:57
阅读次数:
0
ES5 构造函数 function Person(){ this.name='建林'; this.age=18; this.say=function(){ console.log('person的say') } } let p1=new Person(); console.log(p1.name); ...
分类:
其他好文 时间:
2021-06-30 18:00:57
阅读次数:
0
布尔逻辑运算符:返回一个boolean结果 有:! 非、& 与、| 或、^异或 、&&短路与、 || 短路或 短路与:左边为false,右边就不执行 短路或:左边为true,右边就不执行 public static void main(String[] args) { int i = 10; int ...
分类:
编程语言 时间:
2021-06-30 17:59:18
阅读次数:
0