//Row Data
var datarow =
                {
                    Item: $("#Item").val().trim(),
                    Hours: $("#Hours").val().trim(),
                    Date: $("#Date").val().trim()
                };

sendohlun 發表在 痞客邦 留言(0) 人氣()

System.Web.HttpContext.Current.Server.MapPath()
傳入虛擬路徑 (網址URL,正斜線,例如 https://localhost/)
傳回實體路徑 (檔案總管,反斜線,例如 C:\inetpub\wwwroot )

sendohlun 發表在 痞客邦 留言(0) 人氣()


Visual Studio 的解決方案文件是一個文本文件,其中的內容不是太復雜,有些時候 Visual Studio 會把這個文件搞亂,理解一下這個文件的結構,對我們處理一些異常情況有所幫助。
 

sendohlun 發表在 痞客邦 留言(0) 人氣()


//去掉小數點的零
function trimzero($str) {
    //拆解字串,格式為: 整數.小數
    var arr = $str.split('.');
    var $int = arr[0];
    var $dec = arr[1];
    //將小數點 ,右邊的0去除
    var $dec = arr[1].replace(/0+$/, '');

sendohlun 發表在 痞客邦 留言(0) 人氣()

這段sql 可以看出現階段登入的user 跟 SQL 上在執行的sql 碼 

sendohlun 發表在 痞客邦 留言(0) 人氣()

.Net 與資料庫溝通
Sample Code:

sendohlun 發表在 痞客邦 留言(0) 人氣()

Sample Code
-----

sendohlun 發表在 痞客邦 留言(0) 人氣()

var num = 123.4005;
alert(num);
// toFixed(N) 取小數第N位
alert("toFixed(N):" + num.toFixed(2));
//顯示結果: 123.40
//另,toFixed會四捨五入,若取到第3位,顯示結果為: 123.401

sendohlun 發表在 痞客邦 留言(0) 人氣()

  • May 31 Tue 2016 17:44
  • SMART

SMART就是指
S=Specific(具體的項目)、

sendohlun 發表在 痞客邦 留言(0) 人氣()

In wanting nothing, one lacks nothing.
知足常樂。

sendohlun 發表在 痞客邦 留言(0) 人氣()

The outside world is full of danger, but here is no challenge of life, is doomed to no applause.
外面的世界充滿危險,但沒有挑戰的生活,注定無人喝采。

sendohlun 發表在 痞客邦 留言(0) 人氣()

Eagles without experience of suffering wind and rain can not fly high in the sky. And to be brave to take risks is an eternal formula for us.
沒有經歷逆風驟雨的雄鷹不能在空中高飛,勇敢地去冒險是我們永遠的推測。

sendohlun 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

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

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