码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
poi导出Excel报表多表头双层表头、合并单元格
效果图: controller层方法: /** * * 导出Excel报表 * @param request * @return * */ @RequestMapping("/export") @ResponseBody public void export(HttpServletRequest r ...
分类:其他好文   时间:2016-09-19 19:22:06    阅读次数:298
js 去除string 两边的空白
String.prototype.trim=function() { return this.replace(/(^\s*)|(\s*$)/g,'');}var str=" test ";alert("["+str+"]"); // [ test ]alert("["+str.trim()+"]") ...
分类:Web程序   时间:2016-09-19 18:05:49    阅读次数:136
js处理时间(2016-9-16)的函数
function(time){ var msOfDay = 24 * 3600 * 1000; var msOfHour = 3600 * 1000; var msOfMinute = 60 * 1000; if (!time) { return "未知时间"; } //求时间差: time = n ...
分类:Web程序   时间:2016-09-19 17:36:55    阅读次数:113
Qt msgBox 快捷版
int iRet = msgBox(pos, tr("警告") , tr("确定要删除当前选中的行吗?") , tr("确定"), tr("取消"), 1, 1); if (1 == iRet) return; // 0:确定 1:取消 ...
分类:其他好文   时间:2016-09-19 16:07:18    阅读次数:130
iOS 获取设备版本型号
#import "sys/utsname.h" /** * 设备版本 * * @return e.g. iPhone 5S */+ (NSString*)deviceVersion { // 需要#import "sys/utsname.h" struct utsname systemInfo; u ...
分类:移动开发   时间:2016-09-19 15:51:51    阅读次数:215
C语言随笔_类型声明
有位同学说,“老师,我运行如下代码,结果报错了” #include <iostream.h> int main(){ char c, int b; return 0; } 报错结果是: Configuration: Test - Win32 Debug Compiling... demo.c d:\ ...
分类:编程语言   时间:2016-09-19 13:10:58    阅读次数:160
NMAKE:fatal error U1077.“\..\.cl.exe” return code 0xc0000135
NMAKE:fatal error U1077.“cl.exe” return code 0xc0000135 产生原因:在安装visual studio的时候没有勾选注册环境变量导致的。 解决办法:在系统环境变量中加入visual studio的安装路径:vs安装路径\VC\Bin,以及vs安装路 ...
分类:其他好文   时间:2016-09-19 10:14:16    阅读次数:757
Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or ...
分类:其他好文   时间:2016-09-19 06:46:12    阅读次数:107
[LeetCode]383. Ransom Note 解题小结
题目: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ...
分类:其他好文   时间:2016-09-19 06:45:52    阅读次数:157
LeetCode 19. Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. For example, Note:Given n will always be valid.Try to do this in on ...
分类:其他好文   时间:2016-09-18 23:59:22    阅读次数:365
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!