發表文章

目前顯示的是 11月, 2017的文章

jQuery 文檔操作- clone() 方法

<html> <head> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){   $("button").click(function(){     $("body").append($("p").clone());   }); }); </script> </head> <body> <p>This is a paragraph.</p> <button>复制每个 p 元素,然后追加到 body 元素</button> </body> </html>

Microsoft SQL Server 2008 在Win10之下還原 失敗

標題: Microsoft SQL Server Management Studio ------------------------------ 伺服器 '127.0.0.1' 的 還原 失敗。  (Microsoft.SqlServer.SmoExtended) System.Data.SqlClient.SqlError: 資料庫 "SUS" 的記錄結尾尚未備份。若您不想遺失其中的內容,請使用 BACKUP LOG WITH NORECOVERY 備份記錄。亦可使用 RESTORE 陳述式的 WITH REPLACE 或 WITH STOPAT 子句,覆寫記錄的內容。 (Microsoft.SqlServer.Smo) 以上錯誤訊息處理方法 左上選取頁面有 [一般]  跟  [選項] 切換至 [選項] 頁面後 勾選 覆寫現有的資料庫 ,之後按下確定,即可還原

Jquery 長按後 複製文字至剪貼薄

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery Mobile 長按後 複製文字至剪貼薄</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" /> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> <script> //長按可以複製至剪貼薄中 $(document).on("pagecreate","#page1",function(){   $("#badge-code").on("taphold",function(){     //$(this).hide(); this.select(); document.execCommand('copy'); alert("文字己複製至剪貼薄中");   });                      }); </script> </head> <body> <center>  <div data-role="page" id="page1"

jQuery Mobile 滑動換頁

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery Mobile 滑動換頁</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" /> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> <script> $(function(){ $("#page1").bind("swipeleft",function(){ $.mobile.changePage("#page2"); }); $("#page2").bind("swiperight",function(){ $.mobile.changePage("#page1"); }); }); </script> </head> <body> <center> <div data-role="page" id="page1"> <h1>第一頁 往左滑</h1> </div&