原创 數據安裝後無法連接到(local)-解決辦法

無法連接到(local) 其他信息:  在與SQL Server 建立連接時出現與網絡相關的或特定於實例的錯誤。未找到或無法訪問服務器。 請驗證實例名稱是否正確並且SQL Server 已配置爲允許遠程連接。(provider:命名管道提

原创 Js 手機端禁用返回按鈕

<script type="text/javascript"> //禁用返回     $(document).ready(function () {         if (window.history && window.history

原创 js 獲取屏幕和設備的相關width

網頁可見區域寬: document.body.clientWidth 網頁可見區域高: document.body.clientHeight 網頁可見區域寬: document.body.offsetWidth (包括邊線的寬) 網頁可見

原创 C# List 集合取前5個

      var list = tempList.Take(5).ToList();