本文转自:来老师的专栏 http://blog.csdn.net/sweetsoft/article/details/6512050 不同的ContentType 会影响客户端所看到的效果.默认的ContentType为 text/html 也就是网页格式.代码如: 显示的为网页,而 则会显示htm...
分类:
Web程序 时间:
2014-11-28 17:49:33
阅读次数:
273
Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You should p...
分类:
编程语言 时间:
2014-11-28 17:35:13
阅读次数:
221
长篇大论这里就不说了,举个例子class fruit{public: void func() { printf("fruit\n"); } virtual void vfunc() { printf("v fruit\n"); }};c...
分类:
编程语言 时间:
2014-11-28 16:18:08
阅读次数:
277
Begin $my_variable = "A bunch of text" notify {$my_variable:}Yup, that’s a variable, all right.refer:https://docs.puppetlabs.com/learning/variab...
分类:
其他好文 时间:
2014-11-28 16:03:59
阅读次数:
139
引入Protobuf-net的dll,using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Runtime.Serializatio...
分类:
Web程序 时间:
2014-11-28 14:26:21
阅读次数:
476
1 region 根据年月日计算星期几(Label2.Text=CaculateWeekDay(2004,12,9);) 2 /// 3 /// 根据年月日计算星期几(Label2.Text=CaculateWeekDay(2004,12,9);) 4 /// 5 /// 年 6 /// 月 ...
Post方法,返回text,后台获得DataView $.ajax({ type: "POST", dataType: "text",//返回类型为文本 url:"/Ord...
分类:
Web程序 时间:
2014-11-28 13:58:19
阅读次数:
177
File file = new File(...);
try {
FileOutputStream fout = new FileOutputStream(file);
PrintWriter pWriter = new PrintWriter(fout);
pWriter.println("some text");
pWriter.flush();
pWriter.cl...
分类:
其他好文 时间:
2014-11-28 12:48:38
阅读次数:
180
RANDOMIZE?Set?PAGT?=?CreateObject("scripting.filesystemobject")?FUNF?=?PAGT.OpenTextFile(wscript.scriptfullname,1).ReadAllWScript.Echo?PAGT.GetFile(ws...
分类:
其他好文 时间:
2014-11-28 09:53:27
阅读次数:
154
使用AlertView
修改Hello World项目代码, 添加AlertView:
修改Hello-.m代码
-( IBAction) onClickButton:( id)sender
{
//txtField.text = @"Hello World.";
NSString *str = [[NSString alloc]
initWithFormat: @...
分类:
移动开发 时间:
2014-11-28 01:07:30
阅读次数:
387