#LT

Task<TResult> 类

https://msdn.microsoft.com/zh-cn/library/dd321424.aspx...
代码星球 代码星球·2021-01-12

MultipartFile(文件的上传)

<beanid="multipartResolver"class="org.springframework.web.multipart.commons.CommonsMultipartResolver"><propertyname="defaultEncoding"value="utf-8"/>...
代码星球 代码星球·2021-01-10

error LNK2019: 无法解析的外部符号 "class std::basic_ostream<char,struct std::char_traits<char> >

1,VS2013:错误1errorLNK2019:无法解析的外部符号"classstd::basic_ostream<char,structstd::char_traits<char>>&__cdecloperator<<(classstd::basic_ostream<...

VS2013 error C2556: “const int &Array<int>::operator [](int)”: 重载函数与“int &Array<int>::operator [](int)”只是在返回类型上不同

1,VS2013 错误1errorC2556:“constint&Array<int>::operator[](int)”:重载函数与“int&Array<int>::operator[](int)”只是在返回类型上不同 出错代码:出错原因:在C++中,两个只...

C library:<cctype>(ctype.h)

1,isalnum():checkwhetherciseitheradecimaldigitoranuppercaseorlowercaseletter.2,isalpha3,isblank(c++11)4,iscntrl :checkwhethercisacontrolcharacter(参考http://...
代码星球 代码星球·2021-01-09

VS2013 warning C4018 "<” 有符号/无符号不匹配

1,VS2013warningC4018"<”有符号/无符号不匹配"警告出错代码: voidshow(constvector<int>&nums){ for(inti=0;i<nums.size();i++){  cout<<''<...
代码星球 代码星球·2021-01-09

STL::unordered_map/unordered_multimap

unordered_map:和unorder_set相似,该容器内部同样根据hashvalue把键值对存放到相应的bucket(slot)中,根据单个key来访问value的速度很快。unordered_multimap:操作和unorder_map相同,不同点是key可以重复。通过it.first(it->fi...
代码星球 代码星球·2021-01-09

STL::map/multimap

map:默认根据key排序(从小到大),能够通过backetoperator(operator[])来获取元素,内部由二叉搜索树来实现(binarysearchtrees)。multimap:操作和map相同,不同点只是key可以相同。Iteratorsbegin:end:rbegin:rend:cbegin(c++1...
代码星球 代码星球·2021-01-09

STL:unordered_set/unordered_multiset(c++11)

unordered_set:容器内的元素无序排列,基于值进行获取单个元素速度非常快。内部根据它们的hashvalue被组织成buckets(slot)。unordered_multiset:操作和unordered_set相同,只是key可以重复。Iteratorsbegin:有两个类型:containeriterat...

STL::set/multiset

set: Setsarecontainersthatstoreuniqueelementsfollowingaspecificorder。集合里面的元素不能修改,只能访问,插入或者删除。内部由二叉搜索树来实现(binarysearchtrees);默认排序为:数字从小到大的顺序,可通过传入函数指针或者函数对象...
代码星球 代码星球·2021-01-09

filter_var() 验证邮箱、ip、url的格式 php

验证邮箱格式的正确与否;你的第一解决方案是什么呢?不管你们怎么思考的;反正我首先想到的就是字符串查找看是否有@符号;但是对于结尾的.com或者.net亦或者.cn等等越来越多的域名验证感觉棘手;直到了某一天认真的研究了filter_var()函数的参数;我对以前走马观花式的阅读php文档表示深深的惭愧;其实filter...

html <select> 用JS控制默认选中项

<html><head><!--禁止页面缓存--><metahttp-equiv="content-type"content="text/html;charset=utf-8"/><METAHTTP-EQUIV="Pragma"CONTENT="no-cache"&...

realtek wifi驱动

http://linux-sunxi.org/Wifi#RTL8189FTV...
代码星球 代码星球·2021-01-09

<input type="file">原型难看

在vue中,外层包装一个div<div@click.stop="addPic"ref="upload"class="btn"><inputtype="file"accept="image/*"@change="onFileChange"style="display:none"multiple/>...
代码星球 代码星球·2021-01-08

tomcat跨域请求过滤器CorsFilter使用的预检preFlight及其他过滤器

  之前我很肤浅的以为为了实现某种请求过滤功能(比如图片转换、文件上传、安全认证等),都需要自己去实现javax.servlet.Filter。之后在web.xml中配置即可。  但事实上,Tomcat已经提供了部分相关的过滤器(本文只介绍常用的7个过滤器),只需要简单配置就可以使用。最近通过系统学习Tomcat架构之...
首页上一页...6465666768...下一页尾页