Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where the sum of ...
分类:
其他好文 时间:
2017-12-04 11:45:48
阅读次数:
181
安装方式:使用vs自带的nuget管理工具,搜索AutoMapper ,选择第一个安装到你的项目即可。 我从网上找了一些资料, 参考网址:http://blog.csdn.net/csethcrm/article/details/52934325 下载了个demo,然后自己又写了一遍,我把AutoM ...
分类:
移动开发 时间:
2017-12-03 20:01:10
阅读次数:
220
最近在主导一个项目,遇到了一点问题,跟大家分享一下。 最终bug解决方案的链接地址:http://stackoverflow.com/questions/5241088/jquery-call-to-webservice-returns-no-transport-error 最终通过这个cdn我们得 ...
分类:
Web程序 时间:
2017-12-02 11:30:30
阅读次数:
269
1 USE [Test] 2 GO 3 SET ANSI_NULLS ON 4 GO 5 SET QUOTED_IDENTIFIER ON 6 GO 7 --@column 表示字段或者常量,@paddingChar 表示 补位字符, @len 补位数量, @returnStr 8 create f... ...
分类:
数据库 时间:
2017-12-01 11:42:59
阅读次数:
166
http://www.jb51.net/article/48465.htm 1. 数字转换为字符串 a. 要把一个数字转换为字符串,只要给它添加一个空的字符串即可: 复制代码代码如下: var n = 100; var n_as_string = n + ""; b. 要让数字更加显式地转换为字符串 ...
分类:
编程语言 时间:
2017-12-01 11:32:16
阅读次数:
192
前言 在日常开发当中,excel的上传与解析是很常见的。根据业务不同,解析的数据模型也都不一样。不同的数据模型也就需要不同的校验逻辑,这往往需要写多套的代码进行字段的检验,如必填项,数据格式。为了避免重复编写逻辑检验代码,于是有了这篇文章。 第一步、读取Excel表格数据 1 public Acti ...
分类:
Web程序 时间:
2017-11-30 00:49:12
阅读次数:
349
一、引入命名空间: 二、创建注册表项:CreateSubKey(name)方法 添加SubKey时候首先要打开一个表项,并设置参数为true,才能成功创建子项 三、删除注册表项:DeleteSubKey(name,true)方法 四、添加键值:SetValue(name,value)方法 五、删除键 ...
本文实例讲述了C#清除字符串内空格的方法,分享给大家供大家参考。具体如下: 关键代码如下: 代码如下: /// <summary> /// 清除字符串内空格 /// </summary> /// <param name=”str”>需要处理的字符串</param> /// <returns>处理好后 ...
/// <summary> /// 导出 /// </summary> /// <returns></returns> public FileResult xiazai() { //查询到数据 var result = bll.showinfo(); if (result != null || re ...
分类:
Web程序 时间:
2017-11-28 12:40:54
阅读次数:
180
///控制器 /// <summary> /// 图片水印 /// </summary> /// <param name="File1"></param> /// <returns></returns> public ActionResult shuiyinpost(HttpPostedFileBa ...
分类:
其他好文 时间:
2017-11-22 21:45:48
阅读次数:
166