List<string> lines = new List<string>(File.ReadAllLines("123.txt", Encoding.GetEncoding(936)));
- 1月 07 週四 201618:34
c# txt 刪除一行
- 12月 09 週三 201511:31
SQL學習資源
- 12月 09 週三 201511:29
SQL JOIN的觀念
https://www.dotblogs.com.tw/hatelove/archive/2010/...
- 12月 08 週二 201516:06
SSL http強制轉https
http://www.jppinto.com/2009/04/automatically-redir...
- 12月 01 週二 201512:26
blue button
.myButton {
-moz-box-shadow:inset 0px 1px 0px 0px #54a3f7;
-moz-box-shadow:inset 0px 1px 0px 0px #54a3f7;
- 12月 01 週二 201512:21
yello button
.myButton {
-moz-box-shadow:inset 0px 1px 0px 0px #fff6af;
-moz-box-shadow:inset 0px 1px 0px 0px #fff6af;
- 11月 16 週一 201514:24
Preventing HTML and Script injections in Javascript
Server side
http://blog.kkbruce.net/2010/11/microsoft-antixss-library-31-upgrade-40.html#.VkmUF9IrKUl
using Microsoft.Security.Application;
string 新聞文章 = Sanitizer.GetSafeHtmlFragment(Server.HtmlEncode(commentBox.InnerText));
Client side
http://stackoverflow.com/questions/20855482/preventing-html-and-script-injections-in-javascript
html = html.replace(/</g,"<").replace(/>/g,">");
http://blog.kkbruce.net/2010/11/microsoft-antixss-library-31-upgrade-40.html#.VkmUF9IrKUl
using Microsoft.Security.Application;
string 新聞文章 = Sanitizer.GetSafeHtmlFragment(Server.HtmlEncode(commentBox.InnerText));
Client side
http://stackoverflow.com/questions/20855482/preventing-html-and-script-injections-in-javascript
html = html.replace(/</g,"<").replace(/>/g,">");
- 10月 27 週二 201511:19
js isMobile
function isMobile() {
try { document.createEvent("TouchEvent"); return true; }
catch (e) { return false; }
}
try { document.createEvent("TouchEvent"); return true; }
catch (e) { return false; }
}
- 10月 26 週一 201517:36
safari link double-touch issue
$(document).ready(function(){
$('a').on('click touchend',function(e){var el = $(this);var link = el.attr('href');
window.location = link;
$('a').on('click touchend',function(e){var el = $(this);var link = el.attr('href');
window.location = link;
