This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
staic void Main() | |
{ | |
Consolw.WriteLine("Hello World."); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Console.WriteLine(DateTime.Now.ToString("yyyyMMdd")); | |
Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd")); | |
Console.WriteLine(DateTime.Now.ToString("yyyy/MM/dd")); | |
Console.WriteLine(DateTime.Now.ToString("yyyy年MM月dd日")); | |
Console.WriteLine(DateTime.Now.ToString("yyyy~MM~dd")); | |
/* 输出: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal void MergeTable(DataTable src) | |
{ | |
bool enforceConstraints = false; | |
if (!this.isStandAlonetable) | |
{ | |
if (src.DataSet == this.dataSet) | |
{ | |
return; | |
} | |
enforceConstraints = this.dataSet.EnforceConstraints; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
dbms_output.put_line('hello world.'); | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<!--<meta http-equiv="Refresh" content="3; url=http://www.qidian.com" />--> | |
<title>获取qq空间收藏音乐</title> | |
<script type="text/javascript">var h=''; | |
function jsonCallback(data) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region 数值计算 | |
/// <summary> | |
/// 求2个数的百分比 | |
/// </summary> | |
/// <param name="num1"></param> | |
/// <param name="num2"></param> | |
/// <returns></returns> | |
public string GetRate(string num1, string num2) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// DataTable 排序 | |
/// </summary> | |
/// <param name="dt"></param> | |
/// <param name="orderBy"></param> | |
/// <returns></returns> | |
protected DataTable SortDataTable(DataTable dt, string keyword, string orderBy) | |
{ | |
LogHelper.LogInfo("调用 SortDataTable() 方法"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// 根据指定的url下载数据 | |
/// </summary> | |
/// <param name="url">url</param> | |
/// <returns></returns> | |
public byte[] DownloadImg2Bytes(string url) | |
{ | |
WebClient wc = new WebClient(); | |
byte[] bytes; | |
try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
前台aspx页面输出for循环 | |
<% string[] arr = new string[] { "1", "2", "3" };%> | |
<% for (int i = 0; i < arr.Length; i++) | |
{%> | |
<%= arr[i] + " " %> | |
<%}%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Javascript quiz</title> | |
<meta charset="utf-8"> | |
<script type="text/javascript"> | |
/* | |
* 要求: | |
* how to use js to set the backgournd color of the | |
* sencond option(value="b") to be grey? | |
*/ |
OlderNewer