class Person { async getVersion () { return new Promise((resolve, reject) => { setTimeout(function () { resolve('1.0'); // reject('fail') }, 1000); ..... ...
分类:
其他好文 时间:
2018-07-16 11:27:32
阅读次数:
143
robotframework运行中断后或重复运行后,ride中经常会出现控制台不显示日志信息,主要原因是因为编码不支持中文的原因 解决方法: 修改"C:\Python27\lib\site-packages\robotide\contrib\testrunner\testrunner.py"文件po ...
分类:
其他好文 时间:
2018-07-16 11:20:23
阅读次数:
316
function intercept($str,$length = 10){ if (strlen($str)>$length) $str=substr($str,0,$length) . '...'; return $str; } ...
分类:
其他好文 时间:
2018-07-16 11:17:36
阅读次数:
109
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo ...
分类:
其他好文 时间:
2018-07-16 11:14:55
阅读次数:
150
less里面有一个避免编译,有时候我们需要输出一些不正确的css语法或者使用less不认识的专有语法。要输出这样的值我们可以在字符串前加上一个~ /*避免编译*/ .test_03{ width: 300px; height: calc(300px - 30px); } => .test_03 { ...
分类:
其他好文 时间:
2018-07-16 11:12:25
阅读次数:
116
上篇文章(语音通信中终端上的时延(latency)及减小方法)说从本篇开始会切入webRTC中的netEQ主题,netEQ是webRTC中音频技术方面的两大核心技术之一(另一核心技术是音频的前后处理,包括AEC、ANS、AGC等,俗称3A算法)。webRTC是Google收购GIPS重新包装后开源出 ...
分类:
Web程序 时间:
2018-07-16 11:11:46
阅读次数:
230
W = [2 8 1 1 6 5 1 2 3 6 4 9 3 7 9]; S = [0 0 0 1 1 3 3 3 5 5 6 4 6 2 2];S=S+1; T = [1 3 2 4 3 4 5 6 4 7 5 7 7 3 6];T=T+1; IDS={'u0','u1','u2','u3','u... ...
分类:
编程语言 时间:
2018-07-16 11:08:57
阅读次数:
747
lis = [2,3,'k',['qwe',20,['k',['tt',3,'1']],89],'ab','adv']1:将列表lis中的’tt’变成大写(用两种方式) 2:将列表中的数字3变成字符串’100’(用两种方式) 3:将列表中的字符串’1’变成数字101(用两种方式) lis = ['l ...
分类:
其他好文 时间:
2018-07-16 01:01:28
阅读次数:
341
第1章 课程导学本章主要介绍学习react的重要性,课程的知识大纲,学习前提,讲授方式及预期收获。1-1 课程导学 第2章 React初探本章主要讲解React项目的开发环境搭建,工程代码结构及React中最基础的语法内容,同时对前端组件化思想进行介绍。2-1 React简介2-2 React开发环 ...
分类:
其他好文 时间:
2018-07-16 00:58:32
阅读次数:
1032
前言 当前项目目录 windows 为 E:\project\testpro\ linux 为 /project/testpro/ Windows环境下获取绝对路径情况 使用 a/b/c 为路径,获取绝对路径: new File("a/b/c").getAbsolutePath() 其得到路径为 E ...
分类:
编程语言 时间:
2018-07-16 00:57:38
阅读次数:
198