//第一次尝试:#include<stdio.h> #include<stdlib.h> void* myMemmove(void* destin, const void* source,size_t num) { if (destin == NULL || source == NULL) { re ...
分类:
其他好文 时间:
2020-11-24 12:25:30
阅读次数:
7
资源文件在此 https://github.com/angzel/zen/blob/master/source/basic/zen-string/zen_utf8.h 只有两个函数 std::u32string UTF8ToUnicode(std::string const & utf8); std ...
分类:
编程语言 时间:
2020-11-24 12:19:12
阅读次数:
9
Js中Proxy对象 Proxy对象用于定义基本操作的自定义行为,例如属性查找、赋值、枚举、函数调用等。 语法 const proxy = new Proxy(target, handler); target: 要使用Proxy包装的目标对象,可以是任何类型的对象,包括原生数组,函数,甚至另一个代理 ...
分类:
Web程序 时间:
2020-11-24 12:04:00
阅读次数:
13
1、引入fs模块 const fs = require('fs'); 2、常用方法 1、fs.stat 检测是文件还是目录 检测文件or目录是否存在 检测是文件还是目录 fs.stat('./test.html',(err,data)=>{ if(err){ console.log(err); re ...
分类:
Web程序 时间:
2020-11-23 12:21:53
阅读次数:
12
问题1:ES6中的class 与 ES5中function的关系 ES6 中: class Person { constructor(name) { this.name = name; } sayHello() { return 'hello, I am ' + this.name; } } var ...
分类:
Web程序 时间:
2020-11-23 12:12:24
阅读次数:
11
1 const domainUrl = getApp().data.domainUrl; 2 Page({ 3 data: {}, 4 onLoad: function (options) { 5 wx.getSystemInfo({ 6 success(res) { 7 if (res.envir ...
分类:
微信 时间:
2020-11-23 12:11:51
阅读次数:
25
// 直播时长处理 export const formateLiveTimeLength = (startTime, endTime) =>{ // 时间格式’YYYY-MM-DD HH:MM‘ // ios系统 需要把 YYYY-MM-DD 转化为 YYYY/MM/DD let start = [ ...
分类:
Web程序 时间:
2020-11-23 12:00:11
阅读次数:
10
本文主要讲解利用TaskSet类对测试场景进行管理。特别是当要纳入测试范围的功能点越来越多时,更需要考虑测试管理相关的内容。让性能测试更有条理和高效。以如下官方例子来讲解TaskSet的用法以及在测试运行中的一些细节。fromlocustimportUser,TaskSet,between,task,constantclassForumSection(TaskSet):wait_time=cons
分类:
其他好文 时间:
2020-11-23 11:45:29
阅读次数:
7
位置:rgw / rgw_rest.cc 2523 1 RGWHandler_REST *RGWREST::get_handler(rgw::sal::RGWRadosStore *const store, 2 struct req_state *const s, 3 const rgw::auth ...
分类:
其他好文 时间:
2020-11-21 12:28:04
阅读次数:
7
###P3899 [湖南集训]谈笑风生 二维数点问题,主席树模板(两种写法 #include<bits/stdc++.h> #define IL inline #define LL long long #define pb push_back using namespace std; const i ...
分类:
其他好文 时间:
2020-11-21 12:15:18
阅读次数:
7