<div id = "test">
xxxx
</div>
$("#test").load(window.location.href + " #test");
2017年4月20日 星期四
2017年4月11日 星期二
2017年3月7日 星期二
[Bootstrap]tab event 相關
//點擊頁籤取得頁籤的文字
$('.nav-tabs a').on('shown.bs.tab', function (event) {
var x = $(event.target).text();
alert(x);
});
if ($('.nav-tabs li:eq(0) a').text() == "基本資料") {
}
//設定顯示哪個頁籤
$('[href="#tab2"]').tab("show");
2017年3月1日 星期三
[SQL]刪除無主Key重複資料的第一筆
因發現來源端資料有重複,故需刪除重複,SQL如下
WITH q AS
(
SELECT TOP 1 *
FROM test where id = '123' and week = 2 and section = '06'
)
DELETE
FROM q
WITH q AS
(
SELECT TOP 1 *
FROM test where id = '123' and week = 2 and section = '06'
)
DELETE
FROM q
2017年2月15日 星期三
Jquery3.3.1 使用Bootstrap 3 Datepicker會有問題
Jquery3.3.1 使用Bootstrap 3 Datepicker會有問題
請下載最新修正版即可正常使用
http://eonasdan.github.io/bootstrap-datetimepicker/Changelog/#41737
請下載最新修正版即可正常使用
http://eonasdan.github.io/bootstrap-datetimepicker/Changelog/#41737
2017年2月13日 星期一
[MVC]出現HTTP Error 401.0 - Unauthorized
使用預設樣板建立MVC5,Identity來做驗證,如Action有使用Authorize會出現
HTTP Error 401.0 - Unauthorized
如沒使用Identity,在web.config
<system.webServer>
<modules>
<remove name="FormsAuthentication" /> //將這行移除即可
</modules>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
2017年1月9日 星期一
[Bootstrap]解決開啟兩個modal,scrollbar 會消失問題
目前有一個列表,點選其中一筆資料開啟視窗後再點選按鈕開啟第2個視窗,
目前遇到的問題是關閉第2個視窗時捲軸會消失導致第一層視窗下方畫面都看不到。
解決方式在頁面上加入以下script可解決
$(document).on('hidden.bs.modal', '.modal', function () {
$('.modal:visible').length && $(document.body).addClass('modal-open');
});
目前遇到的問題是關閉第2個視窗時捲軸會消失導致第一層視窗下方畫面都看不到。
解決方式在頁面上加入以下script可解決
$(document).on('hidden.bs.modal', '.modal', function () {
$('.modal:visible').length && $(document.body).addClass('modal-open');
});
訂閱:
文章 (Atom)
Visual Studio JS intellisense 失效解決方式
試了好久,發現到工具>選項>IntelliCode js項目設定啟用,重新開啟VS就正常了! 後來發現是TypeScript3.2版有問題停用,使用4.3版的TypeScript即可
-
開啟記事本將以下程式碼貼入存成.bat @ECHO OFF set x=%date:~0,4%%date:~5,2%%date:~8,2% CD C:\Windows\System32\winevt\Logs COPY Application.evtx D:\bak\...
-
使用truncate table 時會出現 無法截斷資料表 'xxx',因為該資料表正由 FOREIGN KEY 條件約束參考解決方式 先刪除再重建自動編號即可。 DELETE table; DBCC CHECKIDENT('table...