namespace exchange
{ class Import { /// /// 导入Excel到DataSet中 /// /// 文件的路径和文件全名,含扩展名 /// public DataSet ExcelToDataSet(string strFileSour...
1 public string GetIP() 2 { 3 string tempIp = ""; 4 WebRequest wr = WebRequest.Create("http://city.ip138.com/ip2city.asp"); 5 Stream s = wr.Ge...
分类:
Web程序 时间:
2014-12-19 14:11:26
阅读次数:
226
#include #include using namespace std;class Memento{public: Memento(string sState) { m_sState = sState; } string GetState() { return m_sStat...
分类:
其他好文 时间:
2014-12-19 13:03:47
阅读次数:
154
1、在自己的工程里添加一个资源文件。2、打开添加的资源文件,资源类型选择为音频,点击添加资源把准备好的wav格式音乐文件添加进入资源文件。3、设置资源属性和文件属性为嵌入4、代码以及调用方法 1 Private Sub Play_Music(ByVal Mname As String) 2 ...
分类:
Web程序 时间:
2014-12-19 13:02:53
阅读次数:
368
https://cnodejs.org/topic/5189ff4f63e9f8a54207f60c1、拼接字符串时,String比buffer要快,buffer需要toString()。当保存非utf-8字符串,2进制等等其他格式的时候,需要使用buffer。var string3, buffer...
Hibernate继承(1)单表继承代码:package bean;import java.util.Date;public class Person { private Integer id; private String name; private int password; ...
分类:
Web程序 时间:
2014-12-19 12:59:21
阅读次数:
186
//首先定义一个新的array类class ArrayListjihe { static void Main(string[] args) { ArrayList arr = new ArrayList(); arr.Add(3); arr.Add("hello"); //通过添加元素的先后顺序生成...
分类:
其他好文 时间:
2014-12-19 12:51:45
阅读次数:
153
datatables是个很不错的表格,使用GO时排序问题很麻烦,于是写了个函数 package tools
import (
"github.com/astaxie/beego/context"
"strconv"
)
//datatables的排序
func DT_order(aColumns []string, Inp...
分类:
编程语言 时间:
2014-12-19 12:26:51
阅读次数:
219
var ? str=‘12‘ ; ? alert( Number(str) );? //得到12 ? alert(parseInt(str));? //得到12 var str1=‘00100‘; ? alert( Number(str1) );? //得到100 ? alert(parseInt(str1));? //得到64 ? 发现par...
分类:
Web程序 时间:
2014-12-19 12:24:34
阅读次数:
153
【题目】
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.
If the fractional part is repeating, enclose the repeating part in paren...
分类:
其他好文 时间:
2014-12-19 12:11:03
阅读次数:
172