码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
Export功能 导致 页面显示很多非法字符,还可能页面显示两次
private void exportBinaryToExcel(byte[] bytes, string filename) { Response.AddHeader("Content-Disposition", "attachment; fil...
分类:其他好文   时间:2015-11-24 16:05:21    阅读次数:113
如何将MVC Areas中的某一个页设为起始页
public static void RegisterRoutes(RouteCollection routes){ routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", ...
分类:Web程序   时间:2015-11-24 14:53:14    阅读次数:167
iOS 获取通讯录权限的时机
建议将获取通讯录权限的代码放到-(void)viewDidAppear:(BOOL)animated或-(void)viewWillAppear:(BOOL)animated 假如放在viewDidLoad 可能会是app启动进程中止.无法显示出界面
分类:移动开发   时间:2015-11-24 14:48:52    阅读次数:268
冒泡小算法1
冒泡小算法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怎样判断测试结果
Robotium判断测试结果的方法主要有三类:is、search、assert。assert方法除了Robotium API,还有Junit中的所有断言方法。Junit3和Junit4中的断言不再这里提。void assertCurrentActivity (String message, Cl.....
分类:其他好文   时间:2015-11-24 14:32:00    阅读次数:158
Spring MVC @ModelAttribute 详解
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 - EF6 Update/Insert model object from outside of context
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
C# XML,XmlDocument简单操作实例
private static string _Store = LocalPathHelper.CurrentSolutionPath + "/data/bookstore.xml";1.添加节点/// /// 向根节点中插入一个节点/// public static void AddOne...
分类:Windows程序   时间:2015-11-24 12:38:02    阅读次数:200
pthread_create
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!