Case 1 : ParamType是一个指针或者引用,但不是universal reference T& const T& T* Case 2 : ParamType是Universal Reference 注意区别Universal Reference与右值引用 Case 3 : ParamTy ...
分类:
编程语言 时间:
2020-11-25 12:10:25
阅读次数:
6
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
SHA1 VS RSA: what's the difference between them? Fundamentally different. SHA1 is a hash algorithm, which is a one way function, turning an input of a ...
分类:
其他好文 时间:
2020-11-23 12:09:41
阅读次数:
4
double getDistance(cv::Point pointO, cv::Point pointA) { double distance; distance = powf((pointO.x - pointA.x), 2) + powf((pointO.y - pointA.y), 2); ...
分类:
其他好文 时间:
2020-11-23 11:51:01
阅读次数:
9
需求背景 在开发过程中,经常遇到用户提出 如果某个内容没有填写,则需要弹出提示,并且将页面滚动到指定位置的需求。那这种情况应该怎么实现呢?具体代码如下: 一、给链接a加个#的方式来实现跳转。 div1 div2 div3 <div id="container"> <a href="#div1">di ...
分类:
Web程序 时间:
2020-11-21 12:27:15
阅读次数:
21
/* *替换手机号码中间四位数字 *@param [type] $str [description] *@return [type] [description] */ function hide_phone($str){ $resstr = substr_replace($str,'***',3,4 ...
分类:
移动开发 时间:
2020-11-21 12:07:50
阅读次数:
14
$('body').on('tap', '.copy-btn', function (e) { e.preventDefault(); e.stopPropagation(); const range = document.createRange(); range.selectNode($(this ...
分类:
其他好文 时间:
2020-11-20 12:20:18
阅读次数:
20
SELECT LISTAGG(fun_getaaa103('AAE140', a.aae140), ',') WITHIN GROUP(ORDER BY a.aae140) AS aae140str FROM ac02 a where a.aac001 = '10002070436'; SELECT ...
分类:
其他好文 时间:
2020-11-20 12:07:47
阅读次数:
6
<?php function getTagClassContent($url, $tagName, $className) //要抓取的网页, 要抓取的Tag名, 要抓取的Class名 { $doc = new DOMDocument(); @$doc->loadHTML(file_get_cont ...
分类:
Web程序 时间:
2020-11-20 12:00:20
阅读次数:
20
1.1 变量Variable 1.1.1 变量的声明和使用 变量,它和占位符的不同是它在定义时需要赋值,而且它的数值是可以在图的计算过程中随时改变的。因此,占位符通常用作图的输入(即训练数据),而变量用作图中可以被“训练”或“学习”的那些tensor,例如y=ax+b中的a和b。 通过变量类Vari ...
分类:
其他好文 时间:
2020-11-20 11:52:07
阅读次数:
5