List<string> lstViriable = new List<string>();

lstViriable.Add("字串1");
lstViriable.Add("字串2");
lstViriable.Add("字串3");

string sPostString = String.Join("&", lstViriable.ToArray());

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

Visual Studio 開啟現有網站的檔案,但點選後出現,無法從伺服器取得檔案的錯誤訊息
將’C:\Users\{user_name}\AppData\Local\Temp\’ 下的 “VWDWebCache” 目錄整個刪除,
重新起啟Visual studio 後,重新開啟現有網站,這個”VWDWebCache”會重新建立,然後無法取得檔案的問題就解決了。

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

一:正則法:


function getQueryString(name) {
var reg = newRegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = window.location.search.substr(1).match(reg);
if (r != null) {

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

UPDATE TableName SET bitColumn=bitColumn^1 where Coundition

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

Get UNIX Timestamp

DateTimeOffset.UtcNow.ToUnixTimeSeconds()

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

使用 WebClient 存取 https 網站時發生如下錯誤

基礎連接已關閉: 無法為 SSL/TLS 安全通道建立信任關係
The underlying connection was closed: Could not establish trust relationship for SSL/TLS secure channel

解決方式.
WebClient wc = new WebClient();

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

using Newtonsoft.Json;

string strJson = JsonConvert.SerializeObject(className, Formatting.Indented);

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

n = HtmlDom.DocumentNode.SelectSingleNode("//tr[not(descendant::tr) and contains(.,'結帳時間:')]");

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

net user administrator [password]

or

DOS lusrmgr.msc

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

using Newtonsoft.Json;

Mycustomclassname oMycustomclassname = Newtonsoft.Json.JsonConvert.DeserializeObject<Mycustomclassname>(Json Object);

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

Encode to HTML

jQuery('<div />').text('Some text with <div>html</div>').html()

Decode 

jQuery('<div />').html('Some text with &lt;div&gt;html&lt;/div&gt;').text()

資料來源 https://coderwall.com/p/jt7ysq/encode-string-to-html-entities-via-jquery

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

    $(document).ready(fn)
    $(window).load(fn)
以上程式碼是用來等網頁載入完成後再執行
不同的地方在
ready:網頁本身的HTML載入完成後,就開始執行

浩瀚宇宙超級無敵 發表在 痞客邦 留言(0) 人氣()

1 2 3
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。