码迷,mamicode.com
首页 >  
搜索关键字:yield return    ( 62447个结果
小程序接口请求封装
const BASE_URL = '' let ajaxTime = 0 export const myRequest = (option) => { ajaxTime++ uni.showLoading({ title: "加载中", mask: true }) return new Promis ...
分类:微信   时间:2021-07-05 17:23:09    阅读次数:0
【题解】可持久化平衡树
Problem \(\text{Solution:}\) 考虑用 fhq_treap 来实现这个东西。 每次的新建版本,我们可以新建一个根,并直接利用 merge 和 split 操作在上一个版本上利用信息。 注意 split 和 merge 中都需要新建节点,否则会影响之前版本的结构。 #incl ...
分类:其他好文   时间:2021-07-05 17:13:41    阅读次数:0
29.返回历史子路由
点击首页下的新闻子路由再点击档案,再次点击首页显示的还是新闻子路由。 1.Home.vue data() { return { //1.data定义默认值 path: '/home/news', }; }, activated() { // 2.默认值传入touter console.log('ac ...
分类:其他好文   时间:2021-07-05 16:57:00    阅读次数:0
YYYYMMDDhhmmss转换成YYYY-MM-DD hh:mm:ss 或其他样式
changeTime (val) { const pattern = /^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})$/ try { return val.replace(pattern, '$1-$2-$3 $4:$5:$6') } catch (erro ...
分类:其他好文   时间:2021-07-05 16:39:44    阅读次数:0
Golang 语言怎么控制并发 goroutine?
01 介绍 Golang 语言的优势之一是天生支持并发,我们在 Golang 语言开发中,通常使用的并发控制方式主要有 Channel,WaitGroup 和 Context,本文我们主要介绍一下 Golang 语言中并发控制的这三种方式怎么使用?关于它们各自的详细介绍在之前的文章已经介绍过,感兴趣 ...
分类:编程语言   时间:2021-07-05 16:37:57    阅读次数:0
Qt 字符串转md5
Qt 字符串转md5 #include <QCryptographicHash> QString strToMd5(QString str) { QByteArray qba = QCryptographicHash::hash(str.toLatin1(), QCryptographicHash: ...
分类:其他好文   时间:2021-07-02 16:21:17    阅读次数:0
C# Async Streams
先看代码 using System; using System.Collections.Generic; using System.Threading.Tasks; namespace AsyncStream { class Program { static async Task Main(stri ...
分类:Windows程序   时间:2021-07-02 15:58:46    阅读次数:0
1060 Are They Equal (25 分)
If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0 with simple c ...
分类:其他好文   时间:2021-07-02 15:54:07    阅读次数:0
判断命令是否在PATH环境变量中
1 public static bool IsInPath(string command) 2 { 3 bool isInPath = false; 4 // 判断PATH中是否存在 命令 5 foreach (string test in (Environment.GetEnvironmentVa ...
分类:其他好文   时间:2021-07-02 15:52:09    阅读次数:0
归并排序
public class MergeSort<T extends Comparable<T>> extends Sort<T> { private T[] leftArray; @Override protected void sort() { leftArray = (T[]) new Compa ...
分类:编程语言   时间:2021-07-01 16:59:30    阅读次数:0
62447条   上一页 1 2 3 4 5 6 ... 6245 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!