private void exportBinaryToExcel(byte[] bytes, string filename) { Response.AddHeader("Content-Disposition", "attachment; fil...
分类:
其他好文 时间:
2015-11-24 16:05:21
阅读次数:
113
public static void RegisterRoutes(RouteCollection routes){ routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", ...
分类:
Web程序 时间:
2015-11-24 14:53:14
阅读次数:
167
建议将获取通讯录权限的代码放到-(void)viewDidAppear:(BOOL)animated或-(void)viewWillAppear:(BOOL)animated 假如放在viewDidLoad 可能会是app启动进程中止.无法显示出界面
分类:
移动开发 时间:
2015-11-24 14:48:52
阅读次数:
268
冒泡小算法1 冒泡算法:例题.1import java.util.*;public class Nixun { public static void main(String[] args) { System.out.println("一维数组逆序前的结果:"); int a[]={9,8,7...
分类:
编程语言 时间:
2015-11-24 14:43:37
阅读次数:
167
Robotium判断测试结果的方法主要有三类:is、search、assert。assert方法除了Robotium API,还有Junit中的所有断言方法。Junit3和Junit4中的断言不再这里提。void assertCurrentActivity (String message, Cl.....
分类:
其他好文 时间:
2015-11-24 14:32:00
阅读次数:
158
1.@ModelAttribute注释void返回值的方法
@Controller
public class HelloModelController {
@ModelAttribute
public void populateModel(@RequestParam String abc, Model model) {
model.addAttribu...
分类:
编程语言 时间:
2015-11-24 13:02:06
阅读次数:
242
LINK - https://msdn.microsoft.com/en-us/data/jj592676.aspxpublic void InsertOrUpdate(Blog blog) { using (var context = new BloggingContext()) { context.Entry(blog).State = blog.BlogId ...
分类:
其他好文 时间:
2015-11-24 12:58:48
阅读次数:
102
private static string _Store = LocalPathHelper.CurrentSolutionPath + "/data/bookstore.xml";1.添加节点/// /// 向根节点中插入一个节点/// public static void AddOne...
1函数简介头文件#include函数声明intpthread_create(pthread_t*tidp,constpthread_attr_t*attr,(void*)(*start_rtn)(void*),void*arg);返回值若线程创建成功,则返回0。若线程创建失败,则返回出错编号,并且*...
分类:
其他好文 时间:
2015-11-24 12:36:43
阅读次数:
171
直接上代码:#pragma mark - 顶部返回按钮-(void)customizeNavigationLeftButton{ UIButton *leftBt = [UIButton buttonWithType:UIButtonTypeCustom]; leftBt.frame = CGR.....
分类:
其他好文 时间:
2015-11-24 12:30:46
阅读次数:
137