List<string> lstViriable = new List<string>();
lstViriable.Add("字串1");
lstViriable.Add("字串2");
lstViriable.Add("字串3");
string sPostString = String.Join("&", lstViriable.ToArray());
List<string> lstViriable = new List<string>();
lstViriable.Add("字串1");
lstViriable.Add("字串2");
lstViriable.Add("字串3");
string sPostString = String.Join("&", lstViriable.ToArray());
Visual Studio 開啟現有網站的檔案,但點選後出現,無法從伺服器取得檔案的錯誤訊息
將’C:\Users\{user_name}\AppData\Local\Temp\’ 下的 “VWDWebCache” 目錄整個刪除,
重新起啟Visual studio 後,重新開啟現有網站,這個”VWDWebCache”會重新建立,然後無法取得檔案的問題就解決了。
一:正則法:
UPDATE TableName SET bitColumn=bitColumn^1 where Coundition
使用 WebClient 存取 https 網站時發生如下錯誤
基礎連接已關閉: 無法為 SSL/TLS 安全通道建立信任關係
The underlying connection was closed: Could not establish trust relationship for SSL/TLS secure channel
解決方式.
WebClient wc = new WebClient();
using Newtonsoft.Json;
string strJson = JsonConvert.SerializeObject(className, Formatting.Indented);
n = HtmlDom.DocumentNode.SelectSingleNode("//tr[not(descendant::tr) and contains(.,'結帳時間:')]");
using Newtonsoft.Json;
Mycustomclassname oMycustomclassname = Newtonsoft.Json.JsonConvert.DeserializeObject<Mycustomclassname>(Json Object);
Encode to HTML
jQuery('<div />').text('Some text with <div>html</div>').html()
Decode
jQuery('<div />').html('Some text with <div>html</div>').text()
資料來源 https://coderwall.com/p/jt7ysq/encode-string-to-html-entities-via-jquery
$(document).ready(fn)
$(window).load(fn)
以上程式碼是用來等網頁載入完成後再執行
不同的地方在
ready:網頁本身的HTML載入完成後,就開始執行