1 关于begin()与end() c.begin(); // 返回指向容器最开始位置数据的指针 c.end(); // 返回指向容器最后一个数据单元+1的指针 2 iterator list<int>::iterator current = A.begin(); terator是C++标准库(ba ...
分类:
编程语言 时间:
2020-07-27 09:49:18
阅读次数:
82
function(...args){ } 111 function sum(...theArgs) { return theArgs.reduce((previous, current) => { return previous + current; }); } console.log(sum(1, ...
分类:
其他好文 时间:
2020-07-27 09:32:31
阅读次数:
82
2020-07-26 1. 报错"需要更改文件夹" “The current directory 'd:\program files\matlab\r2016b\bin' is reserved for MATLAB files. Please change your current directo ...
分类:
其他好文 时间:
2020-07-26 22:53:01
阅读次数:
92
Operation inconsistent with current state异常解决 找到以下进程,并杀死,便可解决 ...
分类:
其他好文 时间:
2020-07-26 01:21:44
阅读次数:
195
使用命令下载rpm安装包: wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm 下载包名为google-chrome-stable_current_x86_64.rpm 使用root权限进行安 ...
分类:
其他好文 时间:
2020-07-23 22:46:41
阅读次数:
102
报错 SQL Error(1067):Invalid default value for ‘sys_create’ 原因 mysql5.6以后才支持datetime默认为CURRENT_TIMESTAMP,之前的不支持 解决方案 方案1.把DEFAULT CURRENT_TIMESTAMP改为DEF ...
分类:
数据库 时间:
2020-07-23 22:45:51
阅读次数:
80
1)、先写一个注册页面和登录页面; register.html <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>用户注册</title> ...
分类:
编程语言 时间:
2020-07-23 09:16:44
阅读次数:
68
HTTP是一个无状态的协议。每次的请求都是独立的,它的执行情况和结果与前面的请求和之后的请求是无直接关系的,它不会受前面的请求应答情况直接影响,也不会直接影响后面的请求应答情况。 而实际上,我们的系统往往要支持用户在客户端浏览器和服务端之间的多次请求共用相同的数据(状态),比如用户的登陆账号信息。于 ...
分类:
Web程序 时间:
2020-07-22 20:15:57
阅读次数:
87
先看MSDN上的解释: HttpContext.Current.Cache:为当前 HTTP 请求获取Cache对象。HttpRuntime.Cache:获取当前应用程序的Cache。 我们再用.NET Reflector工具看看HttpContext.Cache和HttpRuntime.Cache ...
分类:
Web程序 时间:
2020-07-22 20:06:26
阅读次数:
87
public class OfficeHelper { private static bool ReadExcelToDataTable(ISheet sheet, ref string strMsg, out DataTable data) { bool bRet = true; //定义要返回的 ...
分类:
其他好文 时间:
2020-07-22 16:26:44
阅读次数:
90